random numbers
Find this at dartpad.dartlang.org/?source=a215c4b0-34cf-446e-b766-085017aa78dd.
Created with <3 with dartpad.dartlang.org.
random numbers
Find this at dartpad.dartlang.org/?source=a215c4b0-34cf-446e-b766-085017aa78dd.
Created with <3 with dartpad.dartlang.org.
import 'dart:math'; | |
List values(int length) { | |
List v = []; | |
Random r = new Random(); | |
for (int i = 0; i < length; i++) { | |
v.add(r.nextInt(100)); | |
} | |
return v; | |
} | |
void main() { | |
List v = values(10); | |
print(v); | |
} |