# create
function create(seed)Creates create for the miniquake2 game random module.
| Parameter | Type | Default | Description |
|---|---|---|---|
seed | dynamic | — | seed value consumed by this operation. |
src/miniquake2/game/random.mlProvides miniquake2 game random facilities for this project.
function create(seed)Creates create for the miniquake2 game random module.
| Parameter | Type | Default | Description |
|---|---|---|---|
seed | dynamic | — | seed value consumed by this operation. |
function nextInteger(state)Return the next integer value.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
miniquake2.game.random.RandomState struct
function signed(state)Return the signed value.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function unit(state)Return the unit value.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |