Randomized number

Hello,
Im working with a root file having an ntuple with energies E1, E2,E3,and so on
I am trying to draw using ntuple.Draw a relation between the energies , now i need to add a random number multiplied by one of them where it could have one of these values (0 _ 0.1 _ 0.2 _ 0.3 _ 0.4 _ 0.5 _ 0.6 _ 0.7 _ 0.8 _ 0.9 _ 1)
any suggestions on how i can do that?

Try:

ntuple.Draw("E1 + 0.1*rndm() : E2 + 0.1*rndm()")

Thank you so much, ill try :slight_smile:

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