Skip to content

Instantly share code, notes, and snippets.

@diem1
Last active March 13, 2016 19:10
Show Gist options
  • Save diem1/41f30a39af308ce1518a to your computer and use it in GitHub Desktop.
Save diem1/41f30a39af308ce1518a to your computer and use it in GitHub Desktop.

Revisions

  1. diem1 revised this gist Mar 13, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions random.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    n = Math.floor(Math.random() * 10 + 1)
    console.log n
  2. diem1 created this gist Mar 10, 2016.
    2 changes: 2 additions & 0 deletions random.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    var n = Math.floor((Math.random() * 10) + 1);
    console.log(n);