v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Rand"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
m (fix: off by 1 error when mod returns negative)
Line 1: Line 1:
{{abs|{{#expr: ({{LOCALTIMESTAMP}} + {{NUMBEROFEDITS:R}}) mod {{{1|100}}}+1}}}}<noinclude>
+
{{#expr: {{abs|{{#expr: ({{LOCALTIMESTAMP}} + {{NUMBEROFEDITS:R}}) mod {{{1|100}}}}}}}+1}}<noinclude>
  
  
 
This template produces a integer between 1 and {{{1}}}. Once the page is cached, the number will remain fairly constant.
 
This template produces a integer between 1 and {{{1}}}. Once the page is cached, the number will remain fairly constant.
 
</noinclude>
 
</noinclude>

Revision as of 23:01, 6 December 2008

Expression error: Unrecognized punctuation character "[".


This template produces a integer between 1 and {{{1}}}. Once the page is cached, the number will remain fairly constant.