Suppenbiatch

random color picker

Aug 22nd, 2020 (edited)
1,494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import random
  2.  
  3. two_part_colors = ['ff{:02x}00', 'ff00{:02x}', '{:02x}ff00', '00ff{:02x}', '{:02x}00ff', '00{:02x}ff']
  4. numbers = list(set([int(n.format(i), 16) for i in range(256) for n in two_part_colors]))
  5.  
  6. random.seed('username_here')
  7. print(numbers[random.randint(0, 1530)])
  8. print(13107455)
Add Comment
Please, Sign In to add comment