next Big Int
Generates a random BigInt uniformly distributed between from (inclusive) and the specified toExclusive bound.
Since
2.0.0
Parameters
from
defines the lower bound (inclusive), must be less than toExclusive.
to Exclusive
defines the exclusive upper bound.
Throws
if from is not less than toExclusive
Generates a random BigInt uniformly distributed between 0 (inclusive) and the specified toExclusive bound.
Since
2.0.0
Parameters
to Exclusive
defines the exclusive upper bound and must be positive.
Throws
if toExclusive is negative or zero.