-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Feature request: Stdlib.Random.int62 #9487
Copy link
Copy link
Closed
Description
Dear maintainers,
From reading the documentation for Random.int, I understand it
could be named Random.int30.
But, nowadays we have 64 bits integers, so we might want
to have a Random.int62 that would give us a random
integer for the 64 bits era.
That is to say: Random.int is from the OCaml 32 bits era.
I pledge for the addition of Random.int62, which would be its counterpart
for the 64 bits era.
If people are interested, I will try to send a PR.
The interface would be:
val Random.int62: int -> int
Best regards,
F.
Reactions are currently unavailable