RandomNumberGenerator

Inherits: Reference < Object

Category: Core

Brief Description

A class for generation pseudo-random numbers.

Properties

int seed

Methods

float rand_range ( float from, float to )
float randf ( )
int randi ( )
void randomize ( )

Property Descriptions

Setter set_seed(value)
Getter get_seed()

Method Descriptions

Generates pseudo-random float between from and to.

Generates pseudo-random float between ‘0.0’ and ‘1.0’.

  • int randi ( )

Generates pseudo-random 32-bit integer between ‘0’ and ‘4294967295’.

  • void randomize ( )

Setups a time-based seed to generator.