Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

get unique random numbers dart

List<int> numberList=[];
Random random = new Random();
while(numberList.length<5){
   int random_number = randomizer.nextInt(50);
   if (!numberList.contains(random_number)){
     numberList.add(random_number);
   }
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unique #random #numbers #dart
ADD COMMENT
Topic
Name
1+8 =