Facebook
From Corrupt Agouti, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 194
  1. function gimmeRandom() {
  2.         return Math.floor(Math.random()*10)+1;
  3. }
  4.  
  5. function countToRandom(_count) {
  6.         for (i = 1; i <= _count; i++) {
  7.         console.log(i);
  8.     }
  9. }
  10.  
  11. var rand;
  12.  
  13. console.log("....");
  14. countToRandom(gimmeRandom());
  15.  
  16. console.log("....");
  17. countToRandom(gimmeRandom());
  18.