random rand without replacement java code example
Example: assign a random number in a set without replacement javva
import java.util.Random;
int[] rand = new Random().ints(start, end).distinct().limit(number).toArray();
import java.util.Random;
int[] rand = new Random().ints(start, end).distinct().limit(number).toArray();