RandomconvRandomconv - random in various representations
Given a generator for random byte vectors, this convenience library converts the output into common number representations: int8, int16, int32, int64, int, and float.
v0.2.0 - homepage
val int8 : (int -> string) -> int8int8 g is r, a random int8 using the generator g.
val int16 : (int -> string) -> int16int16 g is r, a random int16 using the generator g.
int ~bound g is r, a random int between inclusive 0 and exclusive bound (defaults to max_int), using the generator g. int raises Invalid_argument if the supplied bound is smaller or equal to 0.