Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost

Home » Stars! 2.6/7 » The Academy » Some answers about common MT questions... (long)  () 1 Vote
Re: Some answers about common MT questions... (long) Mon, 07 February 2011 18:04 Go to previous message

Lt. Commander

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:

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/Rock

Report message to a moderator

Previous Topic: What should be added to the Stars! - Must Know section
Next Topic: Tricks of the Trade (long)
Goto Forum:

Current Time: Sat Apr 20 21:29:44 EDT 2024