public class ShuffleUtils extends Object
Constructor and Description |
---|
ShuffleUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
shuffle(int[] arr) |
static void |
shuffle(int[] arr,
Random rnd)
Shuffle the passed in int array in-place with the specified Random
|
public static void shuffle(int[] arr)
public static void shuffle(int[] arr, Random rnd)
arr
- the array to shufflernd
- the instance of random to useCopyright © 2016–2021. All rights reserved.