AetherlangLib: Random
"Random" is a library for randomization and random generation.
[v0.2+]
choose arr @-> any
@ where arr: array
@ chooses a random element from ARR and returns it.
c.rand dummy @-> number
@ where dummy: any
@ calls "rand()" from the C Programming Language and returns a random integer.
c.srand seed @-> void
@ where seed: number
@ calls "srand(SEED)" from the C Programming Language.
[v0.2+]
shuffled arr @-> array
@ where arr: array
@ returns ARR but randomly shuffled.