Contact: aviboots(AT)netvision.net.il
39,845 questions
51,766 answers
573 users
import 'dart:math'; void main() { Random r = new Random(); for (int i = 0; i < 15; i++) { print(r.nextInt(10)); // from 0 upto 9 included } } /* run: 4 5 1 8 4 0 2 6 5 8 1 2 9 1 8 */
import 'dart:math'; void main() { // Cryptographically secure random number generator Random r = new Random.secure(); for (int i = 0; i < 15; i++) { print(r.nextInt(10)); // from 0 upto 9 included } } /* run: 8 6 9 6 9 3 8 7 8 2 9 8 7 3 0 */