nr

node_rand

you can to make random number easy.

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Using with Node.js

$ npm install node_rand

require('node_rand');

Test Code

// import
var node_rand = require('node_rand');

console.log( "Test Start" );
console.log( node_rand );

var nTemp = 0;

// 0 ~ 99
console.log( "1 : " + node_rand.rand_two_numbers() );

// 0 ~ 9
console.log( "2 : " + node_rand.rand_two_numbers_max( 10 ) );

// 7 ~ 79
console.log( "3 : " + node_rand.rand_two_numbers_min_max( 7, 80 ) );

// 0 ~ 999
console.log( "4 : " + node_rand.rand_three_numbers() );

// 0 ~ 399
console.log( "5 : " + node_rand.rand_three_numbers_max( 400 ) );

// 150 ~ 499
console.log( "6 : " + node_rand.rand_three_numbers_min_max( 150, 500 ) );

Result (cmd)

1 : 21 2 : 2 3 : 28 4 : 653 5 : 397 6 : 454

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial