So here is my array.
double[] testArray = new double[10]; // will generate a random numbers from 1-20, too lazy to write the code
I want to
Use this:
bool CheckUniqueness(double[] values) { var uniqueValues = new HashSet(); foreach (double d in values) { if(uniqueValues.Contains(d)) { return false; } uniqueValues.Add(d); } return true; }