1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Provides an interface for a permutation vector class that makes it easy to
//! randomly shuffle orthogonal arrays, or shuffle any set.
use SliceRandom;
use Index;
/// This is a vector containing the elements ${0, 1 \cdots n - 1}$, shuffled
/// around to easily allow for a user to create a permutation.
///
/// For example: `a[0]`, if `a` is shuffled, corresponds to another element.
/// This allows you to perform an O(1) permutation as long as `a` has been
/// shuffled.