mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-13 04:51:38 -10:00
Scan on the Playlists tab picks one of the other playlists through menu_playlists_tab_random_selection(), shared by all four menu drivers, and does nothing when there is no other playlist. random_range() now stays inside its inclusive range for every rand() value. Tests: samples/menu/playlists_scan presses Scan with zero, one and two playlists on each driver; samples/menu/random_range holds random_range() to its range and an even spread across it.