jrands
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

jrands(#$)

NPM version Build Status Coverage Status

概述

jrands 是什么?

jrands 就是对 .NET 的 Random Class 做另一个简单实现

  • JS 写法
let random = new jrands.Random(2)
let i = random.next() + random.next()
console.log(i)
  • 对应 C# 写法
var r = new Random(2);
var i = r.NextDouble() + r.NextDouble();
Console.Writeln(i);

License

MIT © zswang

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1
  • 0.0.2
    0
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i jrands

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

12 kB

Total Files

7

Last publish

Collaborators

  • zswang