A tiny problem: it *seems* that the last element of a random list is never chosen.
In random.cs :
XmlNode chosenNode = (XmlNode)listNodes[r.Next(listNodes.Count-1)];
XmlNode chosenNode = (XmlNode)listNodes[r.Next(listNodes.Count)];
and now my last elements occur too.
Don't you have this problem too?
Thanks for spotting this! My fault completely - I incorrectly thought that the max-number supplied to the Next method of a random object was inclusive - it obviously isn't! I should RTFM! I've fixed it in the subversion repository.
The 2.4.1 release now fixes this problem.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.