Template:Random

From Palia Wiki
Jump to navigation Jump to search
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Usage

{{Random}} is a psuedorandom number generator, always with a minimum of 0, with a defined maximum. It's not perfect (due to randomness limitations and caching) but it works for examples.

Syntax

{{Random|count|seed|prime}}

Examples

  • {{Random}} = 36 (default, gives values between 0 and 99)
  • {{Random|1000}} = 336 (second and third digit are the same as above)
  • {{Random|1000}} = 336 (same page load, same output)
  • {{Random|1000|39|67}} = 569 (same as above)
  • {{Random|1000|39|61}} = 945 (this and others should all be different)
  • {{Random|1000|6}} = 358
  • {{Random|1000|5}} = 291
  • {{Random|1000|4}} = 224
  • {{Random|1000|3}} = 157
  • {{Random|1000|2}} = 90
  • {{Random|1000|1}} = 23
  • {{Random|1000|0}} = 956
  • {{Random|1000|1|17}} = 441 (varying the prime number)
  • {{Random|1000|1|19}} = 890
  • {{Random|1000|1|23}} = 820
  • {{Random|1000|1|29}} = 217
  • {{Random|1000|1|31}} = 680
  • {{Random|1000|1|37}} = 59
  • {{Random|1000|1|41}} = 993
  • {{Random|1000|1|43}} = 471
  • {{Random|1000|1|47}} = 382
  • {{Random|1000|1|51}} = 295
  • {{Random|1000|1|53}} = 758
  • {{Random|1000|1|59}} = 149
  • {{Random|1000|1|61}} = 627
  • {{Random|1000|1|67}} = 23
  • {{Random|1000|1|71}} = 902
  • {{Random|1000|1|73}} = 393
  • {{Random|1000|1|79}} = 780