import 'dart:math'; Random random = new Random(); int randomNumber = random.nextInt(100); // from 0 upto 99 included