The program in randomN.C will generate a set of random numbers and it will also save them in a text file. we have also plotted a histogram using the randomly generated numbers.
This code can be run through ROOT
. In case you don't have it in your system, you can install from here https://root.cern/install/.
Type the commad <> root rundomN.C
in the terminal or open the root in the terminal type root[0] .x randomN.C