Skip to main content

Module rand

Module rand 

Source

Functionsยง

rand_array
Generates a random array of type T with N elements.
rand_quad_felt
Generates a random QuadFelt
rand_value
Generates a random value of type T using the thread-local random number generator.
rand_vector
Generates a random vector of type T with the specified length.
random_felt
Generates a random field element for testing purposes.
random_word
Generates a random word (4 field elements) for testing purposes.
seeded_element
seeded_word