Answers for "get random number in a range in flutter"

0

flutter random int

import 'dart:math';

main() {
  var rng = new Random();
  for (var i = 0; i < 10; i++) {
    print(rng.nextInt(100));
  }
}
Posted by: Guest on April-21-2021

Code answers related to "get random number in a range in flutter"

Browse Popular Code Answers by Language