Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_rand(ids, tstamp):
- while true:
- id = db.get('select * from ( select * from user where timestamp > tstamp and id not in (ids) ) order by rand() limit 1')
- if not id in ids:
- break
- return id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement