Add docs about seeding random generator

This commit is contained in:
Ryan M. Moore 2023-05-03 15:26:49 -04:00
parent f1d14dd030
commit 8322b2b201
2 changed files with 10 additions and 2 deletions

View file

@ -705,7 +705,11 @@ module Map : sig
module Make (V : Map.OrderedType) : S with type key = V.t
end
(** {1 Random iterators} *)
(** {1 Random iterators}
Random iterators use [Random.int], [Random.float], [Random.bool],
etc., under the hood, so they will respect seeding of the random
generator in the usual way. *)
val random_int : int -> int t
(** Infinite iterator of random integers between 0 and

View file

@ -674,7 +674,11 @@ module Map : sig
module Make (V : Map.OrderedType) : S with type key = V.t
end
(** {2 Random iterators} *)
(** {2 Random iterators}
Random iterators use [Random.int], [Random.float], [Random.bool],
etc., under the hood, so they will respect seeding of the random
generator in the usual way. *)
val random_int : int -> int t
(** Infinite iterator of random integers between 0 and