Random Seed

Game Editor comments and discussion.

Random Seed

Postby jcoggins » Mon May 08, 2006 10:55 pm

Is there a way to use something like the computers clock as a seed for the random function to get a different set of random numbers each time the random function is used?

Jason
jcoggins
 
Posts: 18
Joined: Mon May 08, 2006 10:47 pm
Score: 0 Give a positive score

Postby makslane » Mon May 08, 2006 11:42 pm

The seed change already done when you start a game
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Random Seed

Postby jcoggins » Tue May 09, 2006 12:05 am

Does this also mean that the seed is changed each time the random function is called even if the random function is called several times before the game ends?

Jason
jcoggins
 
Posts: 18
Joined: Mon May 08, 2006 10:47 pm
Score: 0 Give a positive score

Postby makslane » Tue May 09, 2006 12:17 am

No, the seed is changed when you start the game using the 'Game mode' button or when you starts a exported game.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest