I have a question on random filling of histograms. I have been trying to modify the tutorial example /tutorials/hist/fillrandom.C
The example file (/tutorials/hist/fillrandom.C) fails to work when you move it to /tutorials/hist/fillrandom.3.C. I’m confused how changing the name makes the tutorial example fail. It gives the error:
root  .X /Applications/root/tutorials/hist/fillrandom.3.C
Error: non class,struct,union object fillrandom used with . or -> :0:
*** Interpreter error recovered ***
I was curious if anyone could explain to me how this part of the tutorial example works.