Sub Random_Sort_Rows()
Application.ScreenUpdating = False
Columns("A:A").Insert Shift:=xlToRight
Range("A1:A" & Range("B" & Rows.Count).End(xlUp).Row).Formula = "=RAND()"
Cells.Sort Key1:=Range("A1"), Order1:=xlDescending, Orientation:=xlTopToBottom
Columns("A:A").Delete Shift:=xlToLeft
Application.ScreenUpdating = True
End Sub
Sub Random_Sort_Columns()
Application.ScreenUpdating = False
Rows(1).Insert Shift:=xlShiftDown
Range("A1", Cells(2, Columns.Count).End(xlToLeft).Offset(-1)).Formula = "=RAND()"
Cells.Sort Key1:=Range("A1"), Order1:=xlDescending, Orientation:=xlLeftToRight
Rows(1).Delete
Application.ScreenUpdating = True
End Sub
Sub Random_Sort_Columns_and_Rows()
Random_Sort_Columns
Random_Sort_Rows
End Sub