random numbers and string generation
npm install random.jsrandom.js
============
javascript random numbers and string generation library
use it from your html page:
```
or from a node.js project
``
// in your package.json
dependencies: [
"random.js": "0.1.0"
]
// in your js file
var random = require('random')
* randomInt([options]): _generate random integers_ options:Object
* parameters:
* min:Int
* : 0
_the minimum value (default: )_max:Int
* : 4294967295
_the maximum value (default: )_
* returns: an integer between the min/max bounds
* randomFloat([options]): _generate random floats_options:Object
* parameters:
* :min:Float
* : 0.0
_the minimum value (default: )_max:Float
* : 1.0
_the maximum value (default: )_
* returns an integer between the min/max bounds
* randomString([options]): _generate random strings_options:Object
* parameters:
* length:Int
* : 20
_the length of the string to generate (default: )_set:String
* : "alpha"
_one of | "numeric" | "alphanum" | "hex" | "custom" (default: "alphanum")_custom:String/Array
* : set
_if is "custom", provides a set of characters used for the string generation_length
* returns a string containing random characters from the selected set of the given .toLowerCase()` on the result to switch to lowercase
* _note_: when generating hexadecimal strings, the alpha-characters are uppercase, use