Shuffle DataFrame rows?

I have the following DataFrame: Col1 Col2 Col3 Type 0 1 2 3 1 1 4 5 6 1 .....

Shuffle DataFrame rows?

I have the following DataFrame: Col1 Col2 Col3 Type 0 1 2 3 1 1 4 5 6 1 .....

How to generate a random permutation in Java??

What is the best way to generate a random permutation of n numbers? For example, say I have a set of numbers 1, 2 a...