Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

jrands

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

Install

npm i jrands

DownloadsWeekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

12 kB

Total Files

7

Last publish

Collaborators

  • avatar