Re: Generating Random Numbers
Re: Generating Random Numbers
- Subject: Re: Generating Random Numbers
- From: Jens Alfke <email@hidden>
- Date: Sun, 29 Jun 2008 12:50:42 -0700
On 29 Jun '08, at 11:27 AM, Dan Uff wrote:
1. Generate two fields of computer generated random numbers.
2. Have a way for the computer to calculate those numbers from what
a user inputs for an answer.
Look up the man page for "random" [not rand!] and related functions.
I'm not quite sure what you mean by #2, but if you need to generate
repeatable series of numbers, call srandom: each different "seed"
value you pass in will cause random to generate a different and
repeatable sequence.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden