Guest User

Untitled

a guest
Mar 19th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.21 KB | None | 0 0
  1.  
  2. text = "Купить телефон Казань"
  3. arr = text.split(' ')
  4.  
  5.  
  6. arr2=[]
  7. 100.times do
  8.     arr2<<arr.shuffle
  9.     arr2 = arr2.uniq
  10.  
  11. end
  12.  
  13.  
  14.  
  15. arr2.size.times do |x|
  16.     puts arr2[x].join(' ')
  17. end
Advertisement
Add Comment
Please, Sign In to add comment