random
initialize_random(seed)
Initialize the random number generator with the given seed.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
seed
|
int
|
The seed to initialize the random number generator with. |
required |
Source code in src/flowcean/utils/random.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
get_seed()
Generate a random seed.
Returns:
Type | Description |
---|---|
int
|
A random seed. |
Source code in src/flowcean/utils/random.py
33 34 35 36 37 38 39 |
|