Module:Random: Difference between revisions

Limeee (talk | contribs)
copy from English Wikipedia
 
Limeee (talk | contribs)
gosh be a bit faster
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
-- This will prevent the same "random" number being generated many times in a row until a new edit is made
-- This will prevent the same "random" number being generated many times in a row until a new edit is made
-- to the wiki. This setting is only relevant if the |same= parameter is set.
-- to the wiki. This setting is only relevant if the |same= parameter is set.
cfg.lowTraffic = false
cfg.lowTraffic = true


-- If cfg.lowTraffic is set to true, and the |same= parameter is set, this value is used for the refresh rate of the random seed.
-- If cfg.lowTraffic is set to true, and the |same= parameter is set, this value is used for the refresh rate of the random seed.
Line 16: Line 16:
-- will be returned many times in a row. If you set it too low, you may get different random numbers appearing on the same page,
-- will be returned many times in a row. If you set it too low, you may get different random numbers appearing on the same page,
-- particularly for pages that take many seconds to process.
-- particularly for pages that take many seconds to process.
cfg.seedRefreshRate = 60
cfg.seedRefreshRate = 5


--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------