public override int GenerateRandomNumber(int max) { return Math.Abs((int)CryptographicBuffer.GenerateRandomNumber()) % (max); } }