We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2d6031 commit 29d2b23Copy full SHA for 29d2b23
Core/Scripts/Util/Utils.cs
@@ -417,6 +417,17 @@ public static Color RandomColor()
417
);
418
}
419
420
+ public static string GetUniqueHexNumber(ISet<string> taken, int digits)
421
+ {
422
+ string candidate;
423
+ do
424
425
+ candidate = GetRandomHexNumber(digits);
426
+ } while (taken.Contains(candidate));
427
+
428
+ return candidate;
429
+ }
430
431
public static string GetRandomHexNumber(int digits)
432
{
433
var buffer = new byte[digits / 2];
0 commit comments