Skip to main content

All Questions

Tagged with
2 votes
3 answers
901 views

Algorithm for random weighted boolean shuffles?

I don't exactly know how to phrase the thing I'm searching for in a succinct way, which also made it hard to research. In my application I need a random list of booleans, say of length five. The ...
kangalio's user avatar
  • 139
1 vote
1 answer
2k views

Unevenly distributed random number generation [duplicate]

Let's say I have to generate random number from 1 to 100, however, the probability of each number is not 1/100, but a predefined probability. How to generate that number? I use Ruby/Python.
Yoga's user avatar
  • 325