Neologistic Paraphasic Mumbling

    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

    Install

    npm i jrands

    DownloadsWeekly Downloads

    7

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    12 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar