A uniform random index in [0, upperLimit).
[0, upperLimit)
int randomIndex(int upperLimit) { return QuickCrypto.prng.nextInt(upperLimit); }