G'day perlaintdead,
"I posted a very simple (and apparently bad) RNG and ..."
A link to that would have been useful. Is Random Number Generator what you're referring to?
Have you read rand and srand? Have you looked at the four CPAN modules that both of those have links to (at the end of their documentation)? Have you looked at the source code of those modules? Have you you followed up on the other advice given previously?
Change
print RandomMutation()."\n" for 0..100;
to
print RandomMutation()."\n" for 0..5;
Add print statements throughout your code to see what's causing the repetition.
-- Ken
In reply to Re: random question
by kcott
in thread random question
by perlaintdead
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |