Random no. problem

Michael Meissner meissner@cygnus.com
Wed Jul 5 12:49:00 GMT 2000


On Wed, Jul 05, 2000 at 02:32:24PM -0400, DJ Delorie wrote:
> 
> > Is there a way i can get the same random numbers on Windows NT 4 and
> > Sun/SGI ?
> 
> You can write your own random number generator, and use it instead of
> the system's generator.  Otherwise, there is *no* standard for random
> number generators.

Actually the ISO C standard mandates the algorithm for the weaker 'rand' and
'srand' functions.  'random' on the other hand is not specified (though most
UNIX type environments use the BSD functions in toto).

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list