[wp-trac] [WordPress Trac] #51739: Randomize Header Images aren't actually random

WordPress Trac noreply at wordpress.org
Tue Nov 10 12:10:50 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):

 Thanks again for this response. I was wrong - this is not a bug. Instead,
 I'm asking for advice. (You have convinced me - and my own experiments
 support it - that I'm looking at results of a random sequence.)

 A better heading for this ticket might be that the **header image sequence
 is ''too'' random.** It's a problem of the sample set. You point out that
 100 samples is small.

 But for "normal viewers" who only read a few pages at a time, the set is
 very, very small. Consequently **it doesn't feel random.** They don't
 realize that the images change, since the same images seem to repeat
 frequently.

 So in a personal quest for an algorithm that might allow the image changes
 to ''feel random'', I rephrase my requests:

 1. Would you tell me which WordPress source file performs the header image
 randomizing function?
 2. Do you know if the randomizing code has any notion of the "last image
 shown"? (I would like to experiment with letting the next image be
 "current image+random(1,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:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list