Skip to main content

Random

class Random

It is the class responsible for generating random values.


public class Random

— Methods (2) —

NameDescription
int range(int min, int max)Returns a random value between two numbers with a minimum and maximum value passed to be "min" and "max" argument.
float range(float min, float max)Returns a random value between two numbers with a minimum and maximum value passed to be "min" and "max" argument.