Thanks, this might work, but actually what I was looking to do was flip multiple coints with different weights, are there modifications of this that would work? I suppose that would need a new distribution every time so it might not be optimal.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Choosing a binary value with a certain probability (Biased random generator) | 4 | 1256 | February 4, 2020 | |
What is the equivalent of numpy.random.choice for generating a non-uniform random sample based on a user supplied probability? | 7 | 9690 | November 2, 2023 | |
Using Weights from statsbase in Julia, and using an array | 2 | 2868 | November 27, 2020 | |
A uniform way to generate a random element based on a given probability distritution function, a random number genarator and a given element interval? | 1 | 1494 | January 20, 2019 | |
Equivalent Julia package to R package `prob` | 9 | 1803 | March 23, 2017 |