Help guys, does anybody know combinatorics, I loved them, but I kinda forgotten how they work.
I kinda have to create a formula with the following rules.
10 characters alphanumerical string.
Digits occur 1 to 3 times with a ratio of 5:3:1, or 5 times more likely to occur once than thrice.
Characters occur 1 to 3 times for the same characters, no more than that, with a ratio of 11:5:1, 11 times more likely to have 1 occurrence of the same characters than 3.
Since I will try to generate this, It will be easy for me to brute-force it, however I am interested in the formula, before I start I want to calculate the possible combinations, because max possible combinations is 3656158400000000, will my distribution actually lower it?
Please don't tell me that I'm lazy and I need to calculate it myself, I know that, any help even a general explanation will be appreciated.
I kinda have to create a formula with the following rules.
10 characters alphanumerical string.
Digits occur 1 to 3 times with a ratio of 5:3:1, or 5 times more likely to occur once than thrice.
Characters occur 1 to 3 times for the same characters, no more than that, with a ratio of 11:5:1, 11 times more likely to have 1 occurrence of the same characters than 3.
Since I will try to generate this, It will be easy for me to brute-force it, however I am interested in the formula, before I start I want to calculate the possible combinations, because max possible combinations is 3656158400000000, will my distribution actually lower it?
Please don't tell me that I'm lazy and I need to calculate it myself, I know that, any help even a general explanation will be appreciated.
