http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pseudo-random numbers



A random number generator produces a number that could not be known in
advanced (which is something that hasn't been done yet, to my knowledge)

A Pseudo-random number generator follows some predetermined pattern thus the
next number could be known.  (Like in old basic,
10 RANDOMIZE(99)
20 I=RANDOM(100)   REM  NUMBER BETWEEN 0 AND 99
30 ? I
40 GOTO 10
, if the above code were entered and ran I would equal the exact same thing
every time, where as if you changed line 40 to
40 GOTO 20
you would end up with a repeating loop of 254 numbers, that appear random.)

Another way to look at random numbers would be to drop 10 numbers in a hat,
[1]draw out one, write it down, drop the number back in the hat, mix them
up, continue from [1] as often as needed.


But I could be wrong.

Derold


----- Original Message -----
From: <buyer1342@saladlove.com>
To: <gameprogrammer@gameprogrammer.com>
Sent: Friday, August 11, 2000 2:34 PM
Subject: Re: Pseudo-random numbers (was Re: Random numbers in C++)

<<< Message Trimmed >>>

But while this thread is kinda still new, what is the difference between a
"Psuedo" random number generator and a "real" random number generator?

*** MESSAGE TRUNCATED ***


=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCꫨ please visit:
http://gameprogrammer.com/mailinglist.html