inherit
27035
0
Jan 9, 2024 11:43:57 GMT -8
Neo
1,809
July 2004
neodan
|
Post by Neo on Jun 28, 2005 17:32:26 GMT -8
I have been trying to make a script that generates a random number at the begining of every day so that i can use it to write a scrit to automatically change the weather on an rpg randomly.
I can't find any random number generators that can do this and haven't learned how to do it myself yet please help.
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Jun 28, 2005 23:46:20 GMT -8
var rand=Math.floor(Math.random()*50)+1;
A random integer between 1 and 50 is assigned to the variable above.
|
|
inherit
27035
0
Jan 9, 2024 11:43:57 GMT -8
Neo
1,809
July 2004
neodan
|
Post by Neo on Jun 29, 2005 8:35:11 GMT -8
What?
|
|