RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Random

Started by Sthrattoff, May 15, 2007, 05:39:44 AM

0 Members and 1 Guest are viewing this topic.

Sthrattoff

Hi...
Does anybody know how to generate a random number on ruby (exactly, RGSS)?
I kinda need it.

Thanks
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

Season In The Abyss

var = rand(360) # random number from 0 to 360
var = 120 + rand(240) # random number form 120 to 360

Sthrattoff

Hey, simply what I need...
Thanx!
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%