public static void Main()
Console.WriteLine(GetRandomNumber());
public static int GetRandomNumber()
Guid randId = Guid.NewGuid();
var sha256 = System.Security.Cryptography.SHA256.Create();
var hash = sha256.ComputeHash(randId.ToByteArray());
var hashLength = hash.Length;
int selectionIndex = (int)Math.Round(DateTime.Now.Minute / 60d * hashLength);
return hash[selectionIndex];