I have to generate a random variable that ranges from 20
to 30
,
with 0.1
interval,
and the pmf of it is given by 1x101
matrix (for x=20, 20.1, ... 29.9, 30
).
Now I have to make random variable with this given pmf,
But all I know about generating R.V is something related to gaussian, or uniformly distributed function.
So is there any way to implement generating random variables with arbitrary pmf?