RPG Maker VX Ace

RPG Maker VX Ace

View Stats:
Remie Oct 5, 2013 @ 4:56pm
Random Number Generator
How can I randomize a number in-game, or what is the algorithm to manually do this?
< >
Showing 1-2 of 2 comments
Kio Kurashi Oct 5, 2013 @ 5:32pm 
to use ruby syntax (scripting) you can use rand(X) where x is any number and the way that this operates is that rand(5) will pick a random number from 0 to 4. this should work for you however I don't know what you are trying to do.
Originally posted by RPG Maker VX Ace Help File:
rand([max=0])
Creates a random integer in the range 0 ≤ integer < max. Automatically calls srand if it hasn't already been called.

If max is nil or 0, uses Float to return a random number in the range 0 ≤ real number < 1.
Last edited by Kio Kurashi; Oct 5, 2013 @ 5:35pm
Hajami Oct 5, 2013 @ 7:04pm 
Event Command --- Control Variable --- Set Random --- Specifie Value
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Oct 5, 2013 @ 4:56pm
Posts: 2