Difference between revisions of "Issue:Randomseed"

From FollowTheScore
Jump to: navigation, search
Line 10: Line 10:
 
When using the DPL-extension to build semirandom sets of articles, like a main page with changing articles, the set of randomly choosen articles should be kept static for a spesific time period. An easy fix for this is to add a random seed that changes i a predictable way, like once a week or once a day.
 
When using the DPL-extension to build semirandom sets of articles, like a main page with changing articles, the set of randomly choosen articles should be kept static for a spesific time period. An easy fix for this is to add a random seed that changes i a predictable way, like once a week or once a day.
  
See also [http://bugzilla.wikipedia.org/show_bug.cgi?id=11891 11891 Add randomseed] for a patch.
+
Using randomseed will be something like
 +
<pre><nowiki>
 +
{{#dpl:
 +
  category=Foo|
 +
  randomseed={{#time:Ymd}}|
 +
  randomcount=5|
 +
</nowiki></pre>
 +
 
 +
See also [http://bugzilla.wikipedia.org/show_bug.cgi?id=11891 11891 Add randomseed] for a patch. [[User:Jeblad|Jeblad]] 03:41, 14 November 2007 (CET)
  
 
== Reply ==
 
== Reply ==

Revision as of 04:41, 14 November 2007

Description: Add randomseed=number
Extension / Version:   /   next
Type / Status: Change Request   /   open

Problem

When using the DPL-extension to build semirandom sets of articles, like a main page with changing articles, the set of randomly choosen articles should be kept static for a spesific time period. An easy fix for this is to add a random seed that changes i a predictable way, like once a week or once a day.

Using randomseed will be something like

{{#dpl:
  category=Foo|
  randomseed={{#time:Ymd}}|
  randomcount=5|

See also 11891 Add randomseed for a patch. Jeblad 03:41, 14 November 2007 (CET)

Reply