randomInt function

int randomInt({
  1. int? max,
})

Implementation

int randomInt({int? max}) => Random().nextInt(max ?? 1000000);