Rand#

class Rand(**kwargs)#
Constructors:

new() -> GLib.Rand
new_with_seed(seed:int) -> GLib.Rand
new_with_seed_array(seed:int, seed_length:int) -> GLib.Rand

Constructors#

class Rand
classmethod new() Rand#
classmethod new_with_seed(seed: int) Rand#
Parameters:

seed

classmethod new_with_seed_array(seed: int, seed_length: int) Rand#
Parameters:
  • seed

  • seed_length

Methods#

class Rand
double() float#
double_range(begin: float, end: float) float#
Parameters:
  • begin

  • end

free() None#
int() int#
int_range(begin: int, end: int) int#
Parameters:
  • begin

  • end

set_seed(seed: int) None#
Parameters:

seed

set_seed_array(seed: int, seed_length: int) None#
Parameters:
  • seed

  • seed_length