i need to know how to generate a number..influenced by percentages..
how do u write code ...so for example, there is a 95% chance that a variable = 1 and the other 5% of the time it equals 0...
right now i got
int random = rand () % 2;
but this is randomly giving me 1 or 0...