long[] (final int size) { final long[] swarmOfLongs = new long[size]; final ThreadLocalRandom rnd = ThreadLocalRandom.current(); for (int i = 0; i < swarmOfLongs.length; i++) { swarmOfLongs[i] = rnd.nextBoolean() ? rnd.nextLong() : Long.MAX_VALUE; } return swarmOfLongs; }