npm install hash-int* Thomas Wang's Original Homepage (now down): http://www.cris.com/~Ttwang/tech/inthash.htm
* Bob Jenkins' Write Up: http://burtleburtle.net/bob/hash/integer.html
npm install hash-int
``javascript
var hashInt = require("hash-int")
for(var i=-10; i<=10; ++i) {
console.log(hashInt(i))
}
`
as a seed, computes a psuedorandom integer.*
x the seed valueReturns: A signed 32 bit integer representing the value of
x`JS Port (c) 2013 Mikola Lysenko. MIT License