Generating ramdom numbers

Dear Experts,
I am trying to generate 5 random numbers between 1 and 10 by iterating 1000 times, and plot them in histograms/ get the result as a text file.

Please help with some examples.

Thanks !


ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Have a look at TRandom3 here:
https://root.cern.ch/doc/master/classTRandom3.html

It generates numbers between 0 and 1, but you can multiply this easily.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.