jrands(#$)
概述
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