public T[] GenerateUniqueValues <T>(int count) { var rand = new Random(randSeed); var set = new System.Collections.Generic.HashSet <T>(count); while (set.Count < count) { set.Add(GenerateValue <T>(rand)); } return(set.ToArray()); }
public T[] GenerateUniqueValues <T>(int count) { var rand = new Random(randSeed); var set = new System.Collections.Generic.HashSet <T>(count); while (set.Count < count) { set.Add(GenerateValue <T>(rand)); } return(set.ToArray()); }