Skip to content

Commit

Permalink
Address Xavier's review
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Oct 6, 2020
1 parent bc32e82 commit b6e91a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions stdlib/random.mli
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ val int : int -> int
than 2{^30}. *)

val int63 : int -> int
(** [Random.int63 bound] is identical to {!int} if [bound] is less than 2{^30},
however [bound] may be any positive [int].
(** [Random.int63 bound] returns a random integer between 0 (inclusive)
and [bound] (exclusive). [bound] may be any positive integer.
If [bound] is less than 2{^30}, [Random.int63 bound] is equal to
{!Random.int}[ bound]. If [bound] is greater than 2{^30} (on 64-bit systems
or non-standard environments, such as JavaScript), [Random.int63] returns
a value, where {!Random.int} raises {!Invalid_argument}.
@since 4.12.0 *)

Expand Down

0 comments on commit b6e91a9

Please sign in to comment.