Socket
Socket
Sign inDemoInstall

random-js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-js - npm Package Versions

1

1.0.5

Diff

Changelog

Source

1.0.5 (2015-03-03)

  • sample() results are no longer biased toward the final element.
  • discard(count) on the mt19937 engine properly works when count is less than 625
  • Clarify that the built-in engines return signed 32-bit integers (not unsigned).
ckknight
published 1.0.4 •

Changelog

Source

1.0.4 (2014-05-11)

  • string('') now throws an error
  • hex(upper) now returns a cached function, for efficiency.
  • add int32(), which returns an integer from -0x80000000 to 0x7fffffff.
  • performance enhancements
  • add benchmark suite, covers engines, integer, bool, and real.
  • add date(start, end), which returns a Date within a uniform distribution.
ckknight
published 1.0.3 •

Changelog

Source

1.0.3 (2014-04-23)

  • Random no longer needs to be called with new, allowing var r = require('random-js')()
  • Add begin and end arguments to pick and picker.
ckknight
published 1.0.2 •

Changelog

Source

1.0.2 (2014-03-20)

  • Even if shuffle receives an empty array, it should return that same array.
ckknight
published 1.0.1 •

Changelog

Source

1.0.1 (2014-03-20)

  • Fix sample and shuffle when they are passed an empty array.
  • Include -c (compress) option when uglifying.
ckknight
published 1.0.0 •

Changelog

Source

1.0.0 (2014-02-16)

Initial release

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc