lib/jsshuffle/shuffler.rb
# Generates a random new symbol name
Generates a random new symbol name
Generates a random new symbol name
def random_new_name
            begin
                new_name = ('a'..'z').to_a.shuffle[0,8].join
            end while @new_names.include? new_name
            new_name
        end
def random_new_name begin new_name = ( 'a' .. 'z' ) . to_a . shuffle [ 0 , 8 ] . join end while @new_names . include? new_name new_name end
Generates a random new symbol name
Generates a random new symbol name