Ruby | Array shuffle!() function
Array#shuffle!() : shuffle!() is a Array class method which shuffles elements in self in place. Syntax: Array.shuffle!() Parameter: Array Return: shuffles elements in self in place. Example #1 : Ruby # Ruby code for shuffle!() method # declaring array a = [18, 22, 33, nil, 5, 6] # declaring array b