Relative Content

Tag Archive for distribution

How to generate random numbers with a (negative) sloping distribution?

Given a maximum integer value M, I want to generate N integer values that are distributed with a lower frequency when approaching M (preferably M should still have a non-zero probability).
I don’t really care much about the probability function, let’s assume (half of) a normal distribution.

How to generate random numbers with a (negative) sloping distribution?

Given a maximum integer value M, I want to generate N integer values that are distributed with a lower frequency when approaching M (preferably M should still have a non-zero probability).
I don’t really care much about the probability function, let’s assume (half of) a normal distribution.