The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [shuffle]

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

Filter by
Sorted by
Tagged with
6
votes
1answer
487 views

Shuffling an arbitrary list or sequence

After reading this question I wanted to write a short example of how a list or sequence could be shuffled in .net. The result turned out to not be very short: Program.cs ...
9
votes
5answers
987 views

Deck of cards with shuffle and sort functionality

Going through Head First C#'s Chapter 8: Enums and Collections, I learned about List<T>, as well as IComparable<T> ...
14
votes
3answers
639 views

Allowing the user to alphabetize or randomize the contents of a text file

As a newbie programmer, I decided to try my hand at making a program whose function actually might be useful to someone, somewhere. This utility takes a text file, reads it out to the user, displays ...
10
votes
3answers
770 views

Simple word shuffling game

I have made a game (I like to code when in my spare time) where words are taken at random from a list and displayed on a label. If they type it correctly, their ...
9
votes
5answers
572 views

Shuffling a list of track indices

This question has a follow-up: Follow up to Shuffling a list of track indices I have a bunch of paths in an ArrayList<String> and when a user has activated ...
6
votes
3answers
748 views

Follow up to Shuffling a list of track indices

This is the improved code to my last question: ...
4
votes
2answers
359 views

Review of reservoir sampling

I've been studying Reservoir sampling for a couple of days. What I've tried here is draw a uniformly random sample of size 3 from bigger data (the 26 characters of the English alphabet) via reservoir ...