The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Sthrattoff on May 15, 2007, 05:39:44 AM

Title: Random
Post by: Sthrattoff on May 15, 2007, 05:39:44 AM
Hi...
Does anybody know how to generate a random number on ruby (exactly, RGSS)?
I kinda need it.

Thanks
Title: Re: Random
Post by: Season In The Abyss on May 15, 2007, 06:25:38 AM
var = rand(360) # random number from 0 to 360
var = 120 + rand(240) # random number form 120 to 360
Title: Re: Random
Post by: Sthrattoff on May 16, 2007, 03:36:26 AM
Hey, simply what I need...
Thanx!