Top "Shuffle" questions

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

Is it possible to random_shuffle an array of int elements?

I was reading up on this : http://www.cplusplus.com/reference/algorithm/random_shuffle/ and wondered if its possible to …

c++ algorithm shuffle
Card Shuffling in C#

I am trying to write a code for a project that lists the contents of a deck of cards, asks …

c# .net shuffle playing-cards
Is it correct to use JavaScript Array.sort() method for shuffling?

I was helping somebody out with his JavaScript code and my eyes were caught by a section that looked like …

javascript random sorting shuffle
shuffle vs permute numpy

What is the difference between numpy.random.shuffle(x) and numpy.random.permutation(x)? I have read the doc pages …

python numpy scipy permutation shuffle
Random order of rows Matlab

Say we have a matrix of size 100x3 How would you shuffle the rows in MATLAB?

matlab shuffle
Is using Random and OrderBy a good shuffle algorithm?

I have read an article about various shuffle algorithms over at Coding Horror. I have seen that somewhere people have …

c# algorithm shuffle
Java's Collections.shuffle is doing what?

I recently found myself needing to be sure my list wasn't in order. Hibernate was nice enough to return it …

java collections shuffle
Better way to shuffle two related lists

Is there better ways to randomly shuffle two related lists without breaking their correspondence in the other list? I've found …

python list shuffle
Spark: Difference between Shuffle Write, Shuffle spill (memory), Shuffle spill (disk)?

I have the following spark job, trying to keep everything in memory: val myOutRDD = myInRDD.flatMap { fp => val tuple2…

apache-spark shuffle rdd persist
JavaScript - Shuffling Objects inside an object (randomize)

I need to implement a randomization from JSON result. The format of the JSON is two objects: result: Question(object) […

javascript json object shuffle random