MCPcopy Create free account
hub / github.com/davidgiven/luje / shuffle

Method shuffle

lib/java/util/Collections.java:1848–1850  ·  view source on GitHub ↗

Moves every element of the list to a random new position in the list. @param list the List to shuffle. @throws UnsupportedOperationException when replacing an element in the List is not supported.

(List<?> list)

Source from the content-addressed store, hash-verified

1846 * when replacing an element in the List is not supported.
1847 */
1848 public static void shuffle(List<?> list) {
1849 shuffle(list, new Random());
1850 }
1851
1852 /**
1853 * Moves every element of the list to a random new position in the list

Callers

nothing calls this directly

Calls 8

nextIntMethod · 0.80
sizeMethod · 0.65
setMethod · 0.65
getMethod · 0.65
toArrayMethod · 0.65
listIteratorMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected