Return to Roc packages
Documentation
Random
▶
Generator
Generation
State
seed
seed_variant
step
next
static
map
chain
list
u8
bounded_u8
i8
bounded_i8
u16
bounded_u16
i16
bounded_i16
u32
bounded_u32
i32
bounded_i32
(press
s
)
Random
.
Generator
Random
.
Generation
Random
.
State
Random
.
seed
: U32 -> State
Random
.
seed_variant
: U32, U32 -> State
Random
.
step
: State, Generator value -> Generation value
Random
.
next
: Generation *, Generator value -> Generation value
Random
.
static
: value -> Generator value
Random
.
map
: Generator a, (a -> b) -> Generator b
Random
.
chain
: Generator a, Generator b, (a, b -> c) -> Generator c
Random
.
list
: Generator a, Int * -> Generator (List a)
Random
.
u8
: Generator U8
Random
.
bounded_u8
: U8, U8 -> Generator U8
Random
.
i8
: Generator I8
Random
.
bounded_i8
: I8, I8 -> Generator I8
Random
.
u16
: Generator U16
Random
.
bounded_u16
: U16, U16 -> Generator U16
Random
.
i16
: Generator I16
Random
.
bounded_i16
: I16, I16 -> Generator I16
Random
.
u32
: Generator U32
Random
.
bounded_u32
: U32, U32 -> Generator U32
Random
.
i32
: Generator I32
Random
.
bounded_i32
: I32, I32 -> Generator I32
Exposed Modules
LLM docs
Random