Is there a standard function for Python which outputs True or False probabilistically based on the input of a random number from 0 to 1?
example of what I mean:
If you want to amass a lot of data, I would suggest using a map:
from numpy import random as rn p = 0.15 data = rn.random(100) final_data = list(map(lambda x: x < p, data))