I want to write a random number generation algorithm. But I do not want the numbers to be completely random. I want them to be dependent on a number of different factors. By factors, I mean variables with a value between 0 to 1.
So factors could be -
Bounce // 0.56 // Should afffect the outcome by 10% // inversely proportional to outcome
Spin // 0.71 // Should afffect the outcome by 20% // inversely proportional to outcome
Light // 0.99 // Should afffect the outcome by 5% // directly proportional to outcome
Crowd Support // 1.00 // Should afffect the outcome by 5% // directly proportional to outcome
Pressure // 0.89 // Should afffect the outcome by 10% // inversely proportional to outcome
Experience // 0.76 // Should afffect the outcome by 10% // directly proportional to outcome
Skill // 0.56 // Should afffect the outcome by 40% // directly proportional to outcome
Now based on these factors, I want to generate a random number between 0-6 or a wicket.
I am writing this algorithm to simulate a cricket game.
What approach could I take to write such a algorithm?