public void Input() { var index = preventRepeat ? RandomStatics.RandomNoRepeat(0, values.Length, priorIndex) : Random.Range(0, values.Length); Output.Invoke(values[index]); priorIndex = index; }
public void Input() { var output = preventRepeat ? RandomStatics.RandomNoRepeat(minimum, maximum, prior) : Random.Range(minimum, maximum + 1); Output.Invoke(output); prior = output; }
public int Randomize() { var disabled = disableRepeat ? index : specificDisable; index = disableRepeat || disableSpecific? RandomStatics.RandomNoRepeat(minimum, maximum + 1, disabled) : Random.Range(minimum, maximum + 1); return(index); }
public void Input() { Output.Invoke(RandomStatics.RandomInRectangle(range)); }
public void JumpToRandomPoint() { transform.localPosition = RandomStatics.RandomInScaledSphere(range); }
public int GetRandomIndex() { return(index = preventRandomRepeat ? RandomStatics.RandomIndexNotIncluding(values.Length, index) : Random.Range(0, values.Length)); }
public void SetRandomDirection() { clockwise = RandomStatics.CoinToss() ? Trinary.True : Trinary.False; }