This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SV: Random number generator


I've included a very simple (but working) random number generator. The
sourcecode is translated pascal code from the book "Algorithms" by Robert
Sedgewick.
Hope it helps!

(also hope that including files is okay on this mailing list? (it's 1.5kb))


----------
Från: Erric Gilbert <eegmu@staff.communique.net>
Till: 'BMullenber' <BMullenber@aol.com>; gnu-win32@cygnus.com
Ämne: RE: Random number generator
Datum:  den 7 januari 1998 22:41


	I don't know of any number generators for C/C++ but there is a
built in $RANDOM function into BASH. You might be able to incorperate
that some how.

> -----Original Message-----
> From:	BMullenber [SMTP:BMullenber@aol.com]
> Sent:	Wednesday, January 07, 1998 3:05 AM
> To:	gnu-win32@cygnus.com
> Subject:	Random number generator
> 
> Anyone have the source code for a random number generator that
> actually works?
> 
> I am using C++
> 
> I am attempting to get random numbers between 0-100 for a game I wish
> to make
> that requires some sort of randomness with values.
> 
> If anyone has 1 that can do this, please send it or contact me
> 
> Thanks
> 
> Brandon
> BMullenber@aol.com
> -
> For help on using this list (especially unsubscribing), send a message
> to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

random.c (C -fil)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]