Tabnine Logo
TIntList.shuffle
Code IndexAdd Tabnine to your IDE (free)

How to use
shuffle
method
in
gnu.trove.list.TIntList

Best Java code snippets using gnu.trove.list.TIntList.shuffle (Showing top 6 results out of 315)

origin: alibaba/mdrill

public void shuffle( Random rand ) {
  synchronized( mutex ) { list.shuffle( rand ); }
}
origin: net.sf.trove4j/core

public void shuffle( Random rand ) {
  synchronized( mutex ) { list.shuffle( rand ); }
}
origin: net.sf.trove4j/trove4j

public void shuffle( Random rand ) {
  synchronized( mutex ) { list.shuffle( rand ); }
}
origin: com.palantir.patches.sourceforge/trove3

@Override
public void shuffle( Random rand ) {
  synchronized( mutex ) { list.shuffle( rand ); }
}
origin: hernad/easyrec

public void shuffle( Random rand ) {
  synchronized( mutex ) { list.shuffle( rand ); }
}
origin: com.graphhopper/graphhopper

public static Graph shuffle( Graph g, Graph sortedGraph )
{
  int len = g.getNodes();
  TIntList list = new TIntArrayList(len, -1);
  list.fill(0, len, -1);
  for (int i = 0; i < len; i++)
  {
    list.set(i, i);
  }
  list.shuffle(new Random());
  return createSortedGraph(g, sortedGraph, list);
}
gnu.trove.listTIntListshuffle

Javadoc

Shuffle the elements of the list using the specified random number generator.

Popular methods of TIntList

  • add
    Adds a subset of the values in the array vals to the end of the list, in order.
  • toArray
    Copies a slice of the list into a native array.
  • get
    Returns the value at the specified offset.
  • size
    Returns the number of values in the list.
  • sort
    Sort a slice of the list (ascending) using the Sun quicksort implementation.
  • iterator
  • set
    Replace the values in the list starting at offset withlength values from the values array, starting
  • clear
    Flushes the internal state of the list, resetting the capacity to the default.
  • remove
    Removes length values from the list, starting atoffset
  • reverse
    Reverse the order of the elements in the range of the list.
  • max
    Finds the maximum value in the list.
  • min
    Finds the minimum value in the list.
  • max,
  • min,
  • isEmpty,
  • fill,
  • removeAt,
  • replace,
  • subList,
  • sum,
  • binarySearch

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now