Select wallpapers from the database randomly and limit the result by the LIST_MAX constant.