code: public static int nextInt(int n)
    {
      Random random = getRandom();
  
      int value = random.nextInt(n);
  
      if (! _isTest)
        _freeRandomList.free(random);
  
      return value;
    }
docs: Returns the next random int.