Ejemplo n.º 1
0
 /// <summary>
 /// Return a random value in the range [min,max]
 /// </summary>
 /// <param name="min">Inclusive minimum of range</param>
 /// <param name="max">Inclusive maximum of range</param>
 /// <returns>random value in the range [min,max] </returns>
 public byte Inclusive(byte min, byte max) => RandomByte.Inclusive(Rng, min, max);
Ejemplo n.º 2
0
 /// <summary>
 /// Return a random byte in the range (min,max)
 /// </summary>
 /// <param name="min">Exclusive minimum of range</param>
 /// <param name="max">Exclusive maximum of range</param>
 /// <returns></returns>
 public byte Exclusive(byte min, byte max) => RandomByte.Exclusive(Rng, min, max);