1.1.3 • Published 8 years ago

@tatumcreative/random v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Random

build status stability

Creates a random number generated with an optional seed. Random values can be generated on a range, and as a boolean.

Usage

var Random = require('@tatumcreative/random')

var random = Random( "My seed" )

// 0.0 - 1.0
random()

// 5.0 - 10.0
random(5, 10)

// 5 - 10
random(5, 10, true)

Types of seeds

var seededByDate = Random()
var seededByNumber = Random( 1 )
var seededByString = Random( "hello" )
var seededByMultipleArgs = Random( "yellow", Math.random(), +new Date() )
1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago