it('created random functions should throw an error in case of wrong number of arguments', function() { var dist = distribution('uniform'); assert.throws(function () {dist.random([2,3], 10, 100, 12); }, error.ArgumentsError); assert.throws(function () {dist.randomInt([2,3], 10, 100, 12); }, error.ArgumentsError); assert.throws(function () {dist.pickRandom(); }, error.ArgumentsError); assert.throws(function () {dist.pickRandom([], 23); }, error.ArgumentsError); });