public bool RandomChance(float probabilityTrue) { return(SquirrelNoise.Get1DNoiseZeroToOne(position++, seed) < probabilityTrue); }
public float RandomFloatNegativeOneToOne() { return(SquirrelNoise.Get1DNoiseNegativeOneToOne(position++, seed)); }
public float RandomFloatInRange(float lowerInclusive, float upperInclusive) { return((SquirrelNoise.Get1DNoiseNegativeOneToOne(position++, seed) + 1) * ((upperInclusive - lowerInclusive) / 2) + lowerInclusive); }
public float RandomFloatZeroToOne() { return(SquirrelNoise.Get1DNoiseZeroToOne(position++, seed)); }
public int RandomIntInRange(int lowerInclusive, int upperInclusive) { return((int)Math.Floor(SquirrelNoise.Get1DNoiseZeroToOne(position++, seed) * (upperInclusive - lowerInclusive + 1) + lowerInclusive)); }
public int RandomIntLessThan(int lessThan) { return((int)Math.Floor(SquirrelNoise.Get1DNoiseZeroToOne(position++, seed) * lessThan)); }
public int RandomInt() { return(unchecked ((int)SquirrelNoise.Get1DNoiseUint(position++, seed))); }
public uint RandomUInt() { return(SquirrelNoise.Get1DNoiseUint(position++, seed)); }