>>> from root_numpy import random_sample
>>> from ROOT import TF1, TF2, TF3
>>> random_sample(TF1("f1", "TMath::DiLog(x)"), 10000)
array([ 0.99989852, 0.43970852, 0.5705115 , ..., 0.76644511,
0.57712561, 0.99453755])
>>> random_sample(TF2("f2", "sin(x)*sin(y)/(x*y)"), 10000)
array([[ 0.82546291, 0.89052123],
[ 0.99849559, 0.175143 ],
[ 0.01066793, 0.56227858],
...,
[ 0.9717297 , 0.32888917],
[ 0.07574692, 0.23760245],
[ 0.58331683, 0.42593687]])
>>> random_sample(TF3("f3", "sin(x)*sin(y)*sin(z)/(x*y*z)"), 10000)
array([[ 4.08825739e-01, 5.29644626e-02, 9.44930468e-02],
[ 1.36657898e-01, 8.06204008e-01, 4.62176733e-01],
[ 4.07551758e-01, 1.74937939e-01, 4.54898638e-01],
...,
[ 4.67710629e-01, 3.36476975e-01, 5.08900918e-01],
[ 3.67303658e-04, 1.99492895e-01, 6.25048016e-02],
[ 2.35600911e-01, 8.33069892e-02, 5.75918953e-03]])