# Revision history [back]

### Probability density function

Hi experts!

In a line like this:

uniforme_x=RealDistribution('uniform',[a,b])

i call a 'uniform' probability density function: f(t)=1/(b-a), a<t<b.< p="">

In addition, SAGE includes several probability density function: gaussian, log-normal, etc.

But: How can create in SAGE a probability density function created by me (F(t), DIFFERENT to gaussian, log-normal, etc...) and then create random numbers from it?

Thanks a lot.

 2 No.2 Revision tmonteil 27308 ●31 ●202 ●514 http://wiki.sagemath.o...

### Probability density function

Hi experts!

In a line like this:

uniforme_x=RealDistribution('uniform',[a,b])

uniforme_x=RealDistribution('uniform',[a,b])


i call a 'uniform' probability density function: f(t)=1/(b-a), a<t<b.< p=""> f(t)=1/(b-a), a<t<b.

In addition, SAGE includes several probability density function: gaussian, log-normal, etc.

But: How can create in SAGE a probability density function created by me (F(t), DIFFERENT to gaussian, log-normal, etc...) and then create random numbers from it?