Skip to content

Slideshow Shuffle algorithm is heavily biased towards large albums #2008

@lalalasupa0

Description

@lalalasupa0

Is your bug related to a problem? Please describe
When I run a Slideshow in Shuffle mode across my entire collection (or from the 'Albums' page), the randomization seems heavily weighted. The vast majority of items shown are from my largest albums (e.g., those with 2000+ images), while items from my smaller albums (e.g., with 50-100 images) are almost never selected. This makes the feature less effective for rediscovering a diverse range of memories

To Reproduce

  1. Have several albums with vastly different sizes (e.g., Album A with 3000 items, Album B with 50 items, Album C with 20 items)
  2. Go to the 'Albums' page and start a slideshow in 'Shuffle' mode
  3. Observe the sequence of images for a few minutes
  4. Notice that an overwhelming percentage of the shuffled items come from Album A, while Albums B and C are rarely, if ever, seen

Describe the solution you'd like
I believe the current shuffle algorithm likely pools all items into a single list before shuffling. I'd like to propose a "Fair Shuffle" or "Album-Weighted Shuffle" algorithm
A possible implementation could be:

  1. First, randomly select an album from the current collection
  2. Then, randomly select an item from within that chosen album

This method would give smaller albums an equal opportunity to be featured in the slideshow, leading to a much more diverse and perceptually random viewing experience

Additional context
This is more of an algorithmic improvement than a traditional crash/bug, but it would dramatically improve the quality and engagement of the Shuffle feature for anyone with a varied collection

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions