Random u64 in [0, upperBound).
u64
[0, upperBound)
unless upperBound is a bigint in [1, 2^64 - 1].
upperBound
bigint
[1, 2^64 - 1]
Random
u64in[0, upperBound).