Hi guys. Trying to generate strings with random "_" between them. However, I'm getting a lot of repeated strings on 100 generations, how can this be? The length of the original string that is being modified is 16 chars. That should allow for tens of thousands of variations?
PHP Code
<?php
var rnd = new ThreadLocal<Random>(() => new Random(Guid.NewGuid().GetHashCode()));
for (int i = 0; i < UserSuggest.Length; i += 2)
{
int Random = rnd.Value.Next(0, 2);
switch (Random)
{
case 0:
UserSuggest = UserSuggest.Insert(i, "-");
break;
}
}


