Template:Random/doc

From Palia Wiki
Jump to navigation Jump to search

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}} = 39 (default, gives values between 0 and 99)
  • {{Random|1000}} = 939 (second and third digit are the same as above)
  • {{Random|1000}} = 939 (same page load, same output)
  • {{Random|1000|39|67}} = 234 (same as above)
  • {{Random|1000|39|61}} = 795 (this and others should all be different)
  • {{Random|1000|6}} = 23
  • {{Random|1000|5}} = 956
  • {{Random|1000|4}} = 889
  • {{Random|1000|3}} = 822
  • {{Random|1000|2}} = 755
  • {{Random|1000|1}} = 688
  • {{Random|1000|0}} = 621
  • {{Random|1000|1|17}} = 833 (varying the prime number)
  • {{Random|1000|1|19}} = 238
  • {{Random|1000|1|23}} = 13
  • {{Random|1000|1|29}} = 208
  • {{Random|1000|1|31}} = 604
  • {{Random|1000|1|37}} = 769
  • {{Random|1000|1|41}} = 560
  • {{Random|1000|1|43}} = 948
  • {{Random|1000|1|47}} = 726
  • {{Random|1000|1|51}} = 514
  • {{Random|1000|1|53}} = 891
  • {{Random|1000|1|59}} = 83
  • {{Random|1000|1|61}} = 477
  • {{Random|1000|1|67}} = 688
  • {{Random|1000|1|71}} = 474
  • {{Random|1000|1|73}} = 812
  • {{Random|1000|1|79}} = 32