Quick StartTryGuideAPICommunityBlogGitHub

Standard Library

Below is the API for the OCaml standard library. It's directly copied over from the OCaml Manual, formatted to the Reason syntax and styled accordingly. The API docs are work-in-progress; we'll be polishing these gradually!

If you're targeting JavaScript, the API docs for BuckleScript includes all of below, plus JS-specific APIs.

sig

  type t
  val make : int array -> Random.State.t
  val make_self_init : unit -> Random.State.t
  val copy : Random.State.t -> Random.State.t
  val bits : Random.State.t -> int
  val int : Random.State.t -> int -> int
  val int32 : Random.State.t -> Int32.t -> Int32.t
  val nativeint : Random.State.t -> Nativeint.t -> Nativeint.t
  val int64 : Random.State.t -> Int64.t -> Int64.t
  val float : Random.State.t -> float -> float
  val bool : Random.State.t -> bool
end