randSign.js 196 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 define(['./randBool'], function (randBool) { /** * Returns random sign (-1 or 1) */ function randomSign() { return randBool()? 1 : -1; } return randomSign; });