I want to generate random float variables in python with the following characteristics:
- The domain is [0,1] (or very close to it)
- The mean isn't always 0.5, and it should be between [0,1]
Clearly, it's definitely a skewed distribution. I've experimented with scaled skewed normal distributions in scipy without getting what I want.
Let's say I want to create a vector of these random variables by calling a function with one or more parameters that set the shape of the distribution. Is there a distribution that has the above characteristics? If it's already in numpy or scipy that would be a bonus.
NB: It would be nice if I could independently set the width of the skewed distribution, but if not that would be OK (e.g., if the width depended on the mean).
EDIT: I want to generate multiple ensembles of random variables. For each ensemble, I tried randomizing the skew parameter to try and get a different mean. It sort of worked, but I wasn't happy with the results after I tried scaling the distribution such that the random variables would be between [0,1].