1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Media Block - Forum_list - Random is not very random

Discussion in 'Media Gallery Support' started by melbo, Mar 3, 2015.

  1. melbo

    melbo Well-Known Member

    My Random block seems to only show images from within a single album rather than random images from many albums. Is this a setting or the way the rand has been implemented for this block?
  2. Chris D

    Chris D XenForo Developer Staff Member

    It's deliberately like this as true random ordering in MySQL gives awful performance.

    In more detail; we actually pick a random offset and then show X media items from that offset. So, it is random, but you will indeed likely see a selection of images from the same album.

    A way around this (sort of) is to choose a larger number of images to show on the slider. So instead of 5 or 10, consider 20 or 30. The images picked are then shuffled, so if you happen to select media items that might span multiple albums, it may appear to be slightly more random.
    melbo likes this.
  3. melbo

    melbo Well-Known Member

    Thanks for the explanation. I'll give that a try.

Share This Page