Skip to content

Instantly share code, notes, and snippets.

@hmlON
Created August 2, 2017 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmlON/77017bf61dd390b8e1d2cbd15faaad60 to your computer and use it in GitHub Desktop.
Save hmlON/77017bf61dd390b8e1d2cbd15faaad60 to your computer and use it in GitHub Desktop.
Coupon generator
require 'securerandom'
count = 20000
output = File.open("coupons_#{count}.csv", 'w')
count.times do
output.puts SecureRandom.hex(10)
end
output.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment