Re: Random number generation

1998-07-02 Thread David Taylor
Hi, I just jumped in on this thread because I'm curious about something. William Wilson wrote: > random() is better than rand(), but only because > you can set more options on the function call. > rand() is probably there for compatibility. "man 3 rand" on my RH5.0 system produces: ===

Re: Random number generation

1998-07-02 Thread James Youngman
> "wtw" == William T Wilson <[EMAIL PROTECTED]> writes: wtw> Well, what do you expect, working libraries on DOS? :) The The ANSI standard stipulates that rand() returns an int if I recall correctly. Hence the library implementors had no choice. wtw> random number generator under Linux

Re: Random number generation

1998-07-02 Thread William T Wilson
On Thu, 2 Jul 1998, David E. Fox wrote: > One thing in particular I noticed early on - especially on DOS, is that > the rand() function isn't good enough for certain applications, for Well, what do you expect, working libraries on DOS? :) The random number generator under Linux is reasonably g

Re: Random number generation

1998-07-02 Thread David E. Fox
On Wed, 01 Jul 1998, James Youngman wrote: >You can also do this by reading one number from /dev/urandom and using >it as a seed for rand(). In fact, that is probably a better approach >than this chunk of code above. One thing in particular I noticed early on - especially on DOS, is that the ra

Re: Random number generation

1998-07-02 Thread Dave Ihnat
Joseph C. Tuttle wrote: > Is there a simple way in Linux to generate a series of three hundred to > four hundred unique random four digit numbers? I haven't done enough > programming to write my own random number generator, but I do know Linux > can generate them for its own uses. I have search

Re: Random number generation

1998-07-02 Thread Fred Smith
On Wed, Jul 01, 1998 at 12:40:21PM -0400, Joseph C. Tuttle wrote: > Is there a simple way in Linux to generate a series of three hundred to > four hundred unique random four digit numbers? I haven't done enough > programming to write my own random number generator, but I do know Linux > can gener

Re: Random number generation

1998-07-01 Thread James Youngman
> "jct" == Joseph C Tuttle <[EMAIL PROTECTED]> writes: jct> Is there a simple way in Linux to generate a series of three jct> hundred to four hundred unique random four digit numbers? I jct> haven't done enough programming to write my own random number jct> generator, but I do know L

Random number generation

1998-07-01 Thread Joseph C. Tuttle
Is there a simple way in Linux to generate a series of three hundred to four hundred unique random four digit numbers? I haven't done enough programming to write my own random number generator, but I do know Linux can generate them for its own uses. I have searched man and info pages, and the "L