Showing the changes to examples/array/array_shuffle.ck (1 of 5 files). Show all
Unified · Split
| @@ -20,10 +20,10 @@ repeat( 10 ) · 19 unmodified lines | ||
| 20 | 20 | a.shuffle(); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | −// a way to do random without replacement | |
| 23 | +// one way to do random without replacement | |
| 24 | 24 | repeat( 3 ) |
| 25 | 25 | { |
| 26 | − cherr <= "--- random with replacment --- " <= IO.nl(); | |
| 26 | + cherr <= "--- random without replacment --- " <= IO.nl(); | |
| 27 | 27 | // shuffle! |
| 28 | 28 | a.shuffle(); |
| 29 | 29 | // just go through array in order after shuffle |