Socket
Socket
Sign inDemoInstall

annomath

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

11

lib/randint.js

@@ -8,6 +8,11 @@ var annotate = require('annotate');

return is.number(a) && args[0] <= a;
}, randint);
}, is.fn, randint).
on(is.number, function largerThanMin2(a, args) {
return is.number(a) && args[0] <= a;
}, function(min, max) {
return randint(min, max, Math.random);
});
function randint(min, max) {
return Math.ceil(Math.random() * (max + 1 - min)) - 1 + min;
function randint(min, max, fn) {
return Math.ceil(fn() * (max + 1 - min)) - 1 + min;
}

@@ -5,3 +5,3 @@ {

"author": "Juho Vepsalainen <bebraw@gmail.com>",
"version": "0.3.1",
"version": "0.3.2",
"dependencies": {

@@ -8,0 +8,0 @@ "annois": "0.3.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc