Anyone knows what are percents...

Some event has some chances to happen. From 0 to 100... if the percent is 0 it means zero chances to happen. 100 means it will happen every time. 50 statistically means it will happen half of times...

But HOW can someone give x/100 chances for an event to happen in C++?

This is a question, now an answer.

I was thinking to generate a list of X (=the percent) numbers and see how many of them... well... this is where i stop. How many of them are divisible with 2, or 3, or...or, well, why should i use a certain number?

MAYBE THERE IS A EASY WAY. If there is a function that returns "1" or "0" after you give it the percent, please tell me! And can i make the function more precise? I mean, maybe it will work on 1/10,000 chances, not on 1/100.