randomBetween function

int randomBetween(
  1. int min,
  2. int max
)

origin: flutter-kitchen-sink/lib/func.dart (funcOnceRandom) union-of: kt_ifm_gtid_mob/lib/global.dart, stm_portal_mob/lib/global.dart author: anovsiradj, opencode-go/glm-5.2 version: 2021-03-17, revised: 2026-08-17

Implementation

int randomBetween(int min, int max) {
  return min + math.Random().nextInt(max - min);
}