uniform static method

int uniform(
  1. int upperBound
)

Generates an unpredictable value between 0 and upperBound (excluded).

Implementation

static int uniform(int upperBound) => Sodium.randombytesUniform(upperBound);