[wp-trac] [WordPress Trac] #51739: Randomize Header Images aren't actually random
WordPress Trac
noreply at wordpress.org
Tue Nov 10 00:19:48 UTC 2020
#51739: Randomize Header Images aren't actually random
--------------------------+----------------------
Reporter: richbhanover | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
--------------------------+----------------------
Comment (by richbhanover):
Thank you all for your extremely kind responses. As I said in my [note on
the forum,](https://wordpress.org/support/topic/randomize-header-images-
not-random/#post-13641522) I have done some modeling of my own, running a
Python program several times, to look at the distribution of
random.choices() from a set of 24 items. You’re correct: the distribution
I presented doesn’t seem to be out of line for actual random selection.
Nonetheless, my concern is one of user experience: Images don’t appear
random to the viewer. As I noted:
* The same images frequently appear two times in a row.
* A few images frequently appear several times “in a cluster”. This
doesn’t "seem" to be random (even if it is, numerically).
I'm willing to leave this ticket closed for now, but have these follow-up
requests:
1) Where is the code (what source file) that performs the randomizing?
2) Does the randomizing code have any notion of the "last image shown"? (I
am thinking of letting the next image be "n+random(0,5) modulo number of
images" so the next image "walks progressively through all images."
Thank you again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51739#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list