Skip to content

Instantly share code, notes, and snippets.

@robink
Created November 3, 2011 14:37
Show Gist options
  • Save robink/1336647 to your computer and use it in GitHub Desktop.
Save robink/1336647 to your computer and use it in GitHub Desktop.

Revisions

  1. Robin Komiwes created this gist Nov 3, 2011.
    3 changes: 3 additions & 0 deletions random_sign.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    var randomSign = function() {
    return Math.cos( Math.round( Math.random() ) * Math.PI );
    };