switched to advanced random selection query