Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Last active July 11, 2022 23:14
Show Gist options
  • Save mattantonelli/287f07e9a777b4e64110bb86502e4a51 to your computer and use it in GitHub Desktop.
Save mattantonelli/287f07e9a777b4e64110bb86502e4a51 to your computer and use it in GitHub Desktop.
Generates completely fictional item codes that can be redeemed for absolutely nothing
a = ('A'..'Z').to_a + (1..9).to_a
5.times.map { 4.times.map { a.sample }.join }.join(' - ')
# "4H8Y - 3OQD - 9DO8 - 6WTW - KROI"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment