I want to generate 1000 random numbers with a configurable bias. It is for an app I am planning to write (for fun) - the generator will be a class of course.
- Scenario 1: 50% numbers over 0.5. - Easy - just use Random()
- Scenario 2: x% numbers over 0.5 - a general algorithm
There are some awesome programmers on this forum that can help me I am sure. I can't come up with efficient code for scenario(2) on my own.
I promise all that this is not homework - I left school 50 years ago!