# | Line 122 | Line 122 | public class CheckedSetBash { | |
---|---|---|
122 | } | |
123 | ||
124 | static void AddRandoms(Set s, int n) { | |
125 | < | for (int i=0; i<n; i++) { |
126 | < | int r = rnd.nextInt() % n; |
127 | < | Integer e = new Integer(r < 0 ? -r : r); |
125 | > | for (int i = 0; i < n; i++) { |
126 | > | Integer e = rnd.nextInt(n); |
127 | ||
128 | int preSize = s.size(); | |
129 | boolean prePresent = s.contains(e); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |