Ruby | Array shuffle() function
Array#shuffle() : shuffle() is a Array class method which returns a new array with elements of self shuffle. Syntax: Array.shuffle() Parameter: Array Return: a new array with elements of self shuffle Example #1 : # Ruby code for shuffle() method # declaring array a = [18, 22, 33, nil, 5, 6] # declar