Skip to content

Latest commit

 

History

History
10 lines (4 loc) · 353 Bytes

shuffle.md

File metadata and controls

10 lines (4 loc) · 353 Bytes

Shuffle

Write a function for doing an in-place shuffle of a list.

The shuffle must be "uniform," meaning each item in the original list must have the same probability of ending up in each spot in the finallist.

Assume that you have a function get_random(floor, ceiling) for getting a random integer that is >= floor and <= ceiling.