jrands
The random function of the constructor can specify random seeds
Last updated 2 years ago by zswang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jrands 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

4 Versions

  • 1.0.0                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (14)

Copyright 2014 - 2016 © taobao.org |