An internal-only module factored out due to a circular dependency between core_array and core_list. Contains code for permuting an array.
module Random : Core_random
val swap : 'a array -> int -> int -> unit
val permute : ?random_state:Random.State.t -> 'a array -> unit
randomly permute an array.