So I'm in the process of coding a lottery system. The problem I'm having is that I can only think of a way to pick items at completely random. I can't figure out how to pick an item on chance. Basically all I'm doing is picking a group of entries with all the same chance value, and picking an item out of there. This is working completely random instead of chance so it kind of messes it up and beefs up the lotto. Any suggestions?