SV: Random number generator
Anders Musikka
ajm@algonet.se
Thu Jan 8 10:55:00 GMT 1998
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: random.c
Type: text/x-c
Size: 1532 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19980108/5f901c44/attachment.bin>
More information about the Cygwin
mailing list