This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
generate a random number in DART also giving the option to get a name from an array. | |
try it in https://dartpad.dartlang.org/. :) | |
*/ | |
import 'dart:math'; | |
void main() { | |
Random _random = Random(); | |
int randomNumber(int min, int max) => min + _random.nextInt(max - min); | |
int qty, from, to; |