Skip to main content

Input

Output

Every position has the same probability. Duplicate values occupy multiple positions and therefore increase that value’s chance of selection.
Random selection is nondeterministic. Two runs with the same options can return different results.