How do I generate random numbers using Dart?
its worked for me new Random().nextInt(100); // MAX = number
new Random().nextInt(100); // MAX = number
it will give 0 to 99 random number
Eample::
import 'dart:math'; int MAX = 100; print(new Random().nextInt(MAX));`