![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
It appears as though the result of ((#time:U)) is caching on the page, meaning that this entire template is broken. I see this as a recent phenomenon, maybe even something that occurred 8 days ago. Each page reload produces no change in the numbers, unless ?action=purge is added to the end. What gives? Surely this whole template is worthless if it doesn't give a different number on each page load. To demonstrate the problem, I'll add a simple {{#time:U}} statement below, and you can reload the page to see it … do nothing:
Of course, if you edit this page, it will look like things are okay, because the numbers will change. But only for that single page load. Load the page again, and the number remains fixed at the new value. (Effectively, then, this number is not the current time, but the last time that someone edited this page.) If anyone knows anything about what's going on, please help! CzechOut ☎ | ✍ 19:35, 21 October 2013 (UTC)
I've put a version in the sandbox that uses Module:Random to generate the randomness. This gets rid of the cyclical problems, and dispenses with the need to specify seeds and primes. If anyone is wondering, the default seed is (number of edits) + (number of pages) + (current Unix time) + floor((milliseconds taken to execute the start of the Lua script) * 1000000000). I think that should be random enough to satisfy most people. :) Check out the module test cases if you want to see it in action. If there are no objections, I'll update the template with the sandbox version in a few days' time. — Mr. Stradivarius ♪ talk ♪ 03:31, 28 November 2013 (UTC)
|same=
parameter was added? – BrandonXLF (talk) 00:01, 15 March 2020 (UTC)
|seed=
and |prime=
parameters, so I would support the change. Best — Mr. Stradivarius ♪ talk ♪ 06:57, 15 March 2020 (UTC)Why does a refresh of the page not display new random numbers...
We need to purge the page to get a new result (action=purge).--Megajoule (talk) 10:02, 2 May 2021 (UTC)
There is a move discussion in progress on Template talk:Random item which affects this page. Please participate on that page and not in this talk page section. Thank you. —RMCD bot 08:21, 2 March 2022 (UTC)