How do I generate random numbers using Dart?
Use Dart Generators, that is used to produce a sequence of number or values.
main(){ print("Sequence Number"); oddnum(10).forEach(print); } Iterable oddnum(int num) sync*{ int k=num; while(k>=0){ if(k%2==1){ yield k; } k--; } }