This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

$ModuleNumber

$ModuleNumber
gives the current serial number to be used for local variables that are created.
  • You can reset $ModuleNumber to any positive integer, but if you do so, you run the risk of creating naming conflicts.
New in 2