Generate Random Numbers in Range in Dart

import 'dart:math';

void main() {
  var random = new Random();
  print('Random Number from 20 - 100 :  ${generate(20, 100, random)}');
}

int generate(int min, int max, Random rand) {
  return min + rand.nextInt(max - min);
}  
  
Random Number from 20 - 100 :  75