-
Notifications
You must be signed in to change notification settings - Fork 1
__Randomizer__
Hyomoto edited this page Jun 24, 2021
·
1 revision
Jump To | Go Back |
Methods | Variables |
---|
Implements: Struct
A template for creating psuedorandom number generators. By itself it produces no output, as it must be extended to produce a result.
Jump To | top |
next | seed | next_int | next_range |
---|
Returns: int
Name | Type | Purpose |
---|---|---|
None |
Returns the next random integer from the generator.
Returns: self
Name | Type | Purpose |
---|---|---|
seed | int |
The seed to set the number generator to. |
Sets the starting seed for the randomizer.
Returns: int
Name | Type | Purpose |
---|---|---|
end | int |
The end number |
Returns a number between 0 and end inclusive.
Returns: int
Name | Type | Purpose |
---|---|---|
start | int |
The start number |
end | int |
The end number |
Returns a number between start and end inclusive.
Jump To | top |
---|
Name | Type | Initial | Purpose |
---|---|---|---|
__State | int |
0 | The internal state of the randomizer |
Devon Mullane 2020