stdlib-random is a small compatibility library that provides compiler-independent implementations of the PRNGs used in the history of the standard library
- stdlib-random.v3: implement the PRNG used in OCaml 3.07 to 3.11
- stdlib-random.v4: implement the PRNG used in OCaml 3.12 to 4.14
- stdlib-random.v5: implement the PRNG currently used in OCaml 5
- stdlib-random.v5o: implement the PRNG currently used in OCaml 5 in pure OCaml
This library is targeted toward programs that need a deterministic and stable behavior of the
Random module across OCaml versions.
The newly released version 1.1.0 updates all implementations to provide the new PRNG state serialization functions (
Random.State.of_binary_string) that will be available in OCaml 5.1.0 .