Slimelite BBS

How about random numbers....

Back to DRIVING

From Duncan Drysdale · 1996-04-04 18:35 · #69241 in DRIVING

Hi Simon,


You:Simon Avery Dared write to Duncan Drysdale<G>
About: How about random numbers....
On 23-Mar-96 10:06:51

 SA> Ullo Duncan!

 SA> Duncan Drysdale wrote to All about How about random numbers....

 DD>>  I was just wondering, in light of my troubles, what the general
 DD>> algorithm for a random number is on the PC and how, say for  example
 DD>> C, generates its seed and its random number from there?

 SA> Usually, the seed is gained from the internal clock, and works out an
 SA> alg based on seconds/hours date etc.

 SA> There's two random generators in C in the Snippets archive - might be
 SA> worth looking at them.


 What is the latest snippets archive called? I'll have a look if you
 can supply a file name, thanks.......

 Regards,
 Duncan

 Co-sysop: Blue Lagoon BBS ( 0141-644-1688, 2 Line Ring Down )

--- Terminate 3.00/Pro
 * Origin: The NEW Terminate will -=> FAX <=- almost anything! (2:259/68.2)