I would like to acquire values from a uniform distribution that is sloped instead of a standard uniform distribution which is drawing out values from a straight flat line of slope = 0. To be more specific, I'd like to get values from the function of the slope distribution, FIGURE 2 BELOW. I do know that for the first one, I could use numpy.random.uniform(initial,final). How can I do this for a sloped distribution? I know that multiplying a 'slope' or scaling factor to the values from the numpy.random.uniform does not mathematically mean that values are being drawn out from a sloped distribution. I do realize this might have something to do with changing the way each drawn out value is weighted. source: http://www.itl.nist.gov/div898/handbook/eda/section3/eda3662.htm
Please help! 



You could try to create your own pdf with
stats.rv_continuous.Here's a SO answer that could help you.
Some code:
A histogram of random samples of the distribution: