Gegl.Random¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gegl.Random¶
- classmethod new()¶
- Return type:
Creates a new random number generator initialized with a random seed. This structure needs to be freed by the user with
Gegl.Random.free
();
- classmethod new_with_seed(seed)¶
- Parameters:
seed (
int
) – an integer seed, change for different permutation.- Return type:
Return an opaque structure associated to the seed. This structure needs to be freed by the user with
Gegl.Random.free
();
- duplicate()¶
- Return type:
Return a new copy of an existing
Gegl.Random
- float(x, y, z, n)¶
- Parameters:
- Return type:
Return a random floating point number in range 0.0 .. 1.0.
- float_range(x, y, z, n, min, max)¶
- Parameters:
- Return type:
Return a random floating point number in the range specified, for the given x,y coordinates and
Gegl.Random
provided, if multiple different numbers are needed pass in incrementing n’s.
- free()¶
Free a
Gegl.Random
structure created withGegl.Random.new
() orGegl.Random.new_with_seed
()
- int(x, y, z, n)¶
- Parameters:
- Return type:
Return a random integer number in range 0 .. MAX_UINT
- int_range(x, y, z, n, min, max)¶
- Parameters:
- Return type:
Return a random integer point number in the range specified, for the given x,y coordinates and
Gegl.Random
provided, if multiple different numbers are needed pass in incrementing n’s.
- set_seed(seed)¶
- Parameters:
seed (
int
) – an integer seed, change for different permutation.
Change the seed of an existing
Gegl.Random
.