Quote:

It looks like your method returns fairly even probabilities for each number to occur? Whats wrong with this one?


yes, it works quite well. but since the number isn't (and never will be like julzmighty said) dividable by 7 it's not 100% correct but the error just will get smaller the more rand5() you add. with 7 rand5() the error already is very small though.