nextInt


Description:

public static Result<int,Error> nextInt (int bound)

Returns a random integer in [0, bound).

Parameters:

bound

exclusive upper bound.

Returns:

Result containing random integer, or INVALID_ARGUMENT error.