3 lines
76 B
OCaml
3 lines
76 B
OCaml
let array_rand ary =
|
|
let len = Array.length ary in
|
|
ary.(Random.int len)
|