random method

int random(
  1. int seed,
  2. int max
)

Implementation

int random(int seed, int max) {
  return Random(seed).nextInt(max);
}