Click here to Skip to main content
15,742,180 members

Comments by Qwertie (Top 10 by date)

Qwertie 24-Jan-12 2:58am View    
What does BF+I stand for? It doesn't appear related to the method name LinesCountIndexOf. Why not just use the same method names consistently throughout your post?
Qwertie 24-Jan-12 2:52am View    
.NET strings can have '\0' in the middle, not just at the end.
Qwertie 18-Oct-11 14:02pm View    
I hope you don't mind that I modified your tip. Unless I'm mistaken, your original code which used 'new' inside the method, will create a new array on every call, which is not what I'd call "caching" the results.
Qwertie 12-Oct-11 17:17pm View    
Reason for my vote of 5
For that fascinating link to "Prime Numbers without Mystery"
Qwertie 12-Oct-11 14:58pm View    
Note: the standard versions of this algorithm might use "i+r.Next(list.Count-i)" instead of "r.Next(list.Count)", so that the swap target is chosen only from not-yet-shuffled items. I am not sure if doing so improves the randomness of the result, however.