how to random number a seed C# code example Example: random seed in c# Random rand = new Random(Guid.NewGuid().GetHashCode());