I am looking for a way to code a random draw from a uniform distribution, with fixed probability. So like, in each round there is a probability p that one value from a uniform distribution is drawn and used to calculate the payoff of players. Instead, with probability (1-p) simply nothing happens.
I tried using numpy in several ways, but I get an application error.
Do you have any ideas?
Thank you in advance
Stefano