Guest User

Untitled

a guest
Oct 15th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. require 'rubygems'
  2. require 'randexp'
  3.  
  4. prefix = "DAWID"
  5. regexp = /\d\w\d\w/
  6.  
  7. size = 10
  8.  
  9. results = (1..size).map{|i| "#{prefix}#{regexp.gen}" }
  10.  
  11. results.uniq.each do |el|
  12. puts el
  13. end
Add Comment
Please, Sign In to add comment