What is the argument for TRandom3::Rndm?

This method: https://root.cern.ch/root/html/TRandom3.html#TRandom3:Rndm has an integer argument and a default value. Looking at the code, there is an integer i declared, but it’s not the same as the one in the signature in the documentation. What’s going on here?

Either the argument should be used, or it should be left unnamed in the header+docs. At the very least the documentation should comment on it to avoid confusing users (i.e. me).



The argument is not used internally in any of the TRandom interfaces and is probably there for historical reasons.
This will be clarified in the documentation.

The ‘i’ in the code that you mention is internal to the scope of the ‘if’ where it is used and has nothing to do with the argument in the header declaration of the method.

G Ganis