Guest User

Untitled

a guest
Apr 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. def random_color
  2. hex_chars = ('A'..'F').to_a + ('0'..'9').to_a
  3. color = (1..6).map { hex_chars[rand(hex_chars.length-1)] }
  4. "\##{color}"
  5. end
Add Comment
Please, Sign In to add comment