Top "Shuffle" questions

Shuffling is the act of randomizing the order of the elements in a collection.

Scramble Python List

Before I ask my question, let me get this straight... This is not a duplicate of Does anyone know a …

python arrays list random shuffle
What is the best List implementation for Large lists in java

I have to create a large list of n elements (could be up to 100,000). each element in the list is …

java list apache-commons shuffle
Algorithm for Shuffling a Linked List in n log n time

I'm trying to shuffle a linked list using a divide-and-conquer algorithm that randomly shuffles a linked list in linearithmic (n …

algorithm linked-list shuffle divide-and-conquer
How can I shuffle an array/hash in Ruby?

For learning purposes, what is this called? Is the object being created an array or a hash? stack_of_cards = [] …

ruby shuffle
What, if anything, is wrong with this shuffling algorithm and how can I know?

Just as background, I'm aware of the Fisher-Yates perfect shuffle. It is a great shuffle with its O(n) complexity …

algorithm functional-programming shuffle
An extension method on IEnumerable needed for shuffling

I need an extension method which will shuffle an IEnumerable<T>. It can also take an int to …

c# ienumerable shuffle
How to use random.shuffle() on a generator? python

How do I use random.shuffle() on a generator without initializing a list from the generator? Is that even possible? …

python list random generator shuffle
Select cells randomly from NumPy array - without replacement

I'm writing some modelling routines in NumPy that need to select cells randomly from a NumPy array and do some …

python random numpy shuffle sampling
Shuffle a List in Scala

I have question to for shuffle list in scala using scala.util.Random. For example I have val a = cyan …

list scala shuffle shift
Javascript- Lodash shuffle vs. Math.Random()

I'm in the process of coding a simple BlackJack game in Javascript. So far, I have an array like this: …

javascript random lodash shuffle playing-cards