Re: Some answers about common MT questions... (long) |
Mon, 07 February 2011 18:04 |
|
BlueTurbit | | Lt. Commander
RIP BlueTurbit died Oct. 20, 2011 | Messages: 835
Registered: October 2002 Location: Heart of Texas | |
|
craebild wrote on Mon, 07 February 2011 12:19 | As Eagle of Fire says, computers have a problem with generating truly random numbers, so some quasi-random method is used. IIRC modern games use the computer clock to generate a seed number n where 0 <= n < 1 by taking the fractional part of the time in seconds when the game is started on the PC, and then use some quasi-randomization algorithm from there. The question then is how random that algorithm is...
|
One example:
Quote: | To create a random and unpredictable sequence, the seed must be a truly random number. To get this truly random number for the seed, most programs use the current date and time, converted to an integer value (for example, converted to the number of seconds that have elapsed since January 1, 1970). Since this is a different number every time you start the program, it makes a good seed.
|
BlueTurbit Country/RockReport message to a moderator
|
|
|