RandomNumberGenerator

Inherits: RefCounted < Object

There is currently no description for this class. Please help us by contributing one!

Properties

int

seed

0

int

state

0

Methods

int

rand_weighted ( PackedFloat32Array weights )

float

randf ( )

float

randf_range ( float from, float to )

float

randfn ( float mean=0.0, float deviation=1.0 )

int

randi ( )

int

randi_range ( int from, int to )

void

randomize ( )


Property Descriptions

int seed = 0

  • void set_seed ( int value )

  • int get_seed ( )

There is currently no description for this property. Please help us by contributing one!


int state = 0

  • void set_state ( int value )

  • int get_state ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

int rand_weighted ( PackedFloat32Array weights )

There is currently no description for this method. Please help us by contributing one!


float randf ( )

There is currently no description for this method. Please help us by contributing one!


float randf_range ( float from, float to )

There is currently no description for this method. Please help us by contributing one!


float randfn ( float mean=0.0, float deviation=1.0 )

There is currently no description for this method. Please help us by contributing one!


int randi ( )

There is currently no description for this method. Please help us by contributing one!


int randi_range ( int from, int to )

There is currently no description for this method. Please help us by contributing one!


void randomize ( )

There is currently no description for this method. Please help us by contributing one!