Code example for Random

Methods: nextFloat

0
  } 
 
  protected double computeShift(double offset, int tilingIndex, int inputIndex) {
    double result = tilingIndex * offset;
    if (random != null)
      return result - random.nextFloat() * offset * randomShiftRatio / 2.0;
    return result;
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java