Permalink
Browse files

updated readme. more fields for package description.

  • Loading branch information...
1 parent 37c1982 commit 112d65714c2886a1f56cd64730d3debee8091ff4 @odogono committed May 8, 2012
Showing with 34 additions and 5 deletions.
  1. +2 −0 LICENSE
  2. +5 −2 README.md
  3. +27 −3 package.json
View
@@ -7,8 +7,10 @@ without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
+
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
View
@@ -1,6 +1,9 @@
+Implementation of the Park Miller (1988) "minimal standard" linear congruential pseudo-random number generator.
+For a full explanation visit: http://www.firstpr.com.au/dsp/rand31/
-A good Pseudo-Random Number Generator (PRNG)
+The generator uses a modulus constant (m) of 2^31 - 1 which is a Mersenne Prime number and a full-period-multiplier of 16807.
-Ported from actionscript original code at http://lab.polygonal.de/?p=162
+Output is a 31 bit unsigned integer. The range of values output is 1 to 2,147,483,646 (2^31-1) and the seed must be in this range too.
+Ported from actionscript original code by Michael Baczynski at http://lab.polygonal.de/?p=162
View
@@ -1,15 +1,39 @@
{
"name":"prng-parkmiller-js",
- "keywords":[ "random", "number", "generator", "park-miller" ],
- "version":"0.0.1",
+ "description":"Park-Miller-Carta pseudo-random number generator library",
+ "keywords":[ "random", "number", "generator", "park-miller", "prng" ],
+ "homepage": "https://github.com/odogono/prng-parkmiller-js/",
+ "version":"0.1.0",
"author": "Alexander Veenendaal <alex@opendoorgonorth.com> (http://github.com/odogono/)",
"contributors": [
"Alexander Veenendaal <alex@opendoorgonorth.com> (http://github.com/odogono/)",
"Michael Baczynski <michael@polygonal.de> (http://github.com/polygonal/) "
],
- "main": "./pm_prng",
+ "bugs": {
+ "mail": "alex@opendoorgonorth.com",
+ "url": "https://github.com/odogono/prng-parkmiller-js/issues"
+ },
+
+ "directories": {
+ "example":"./examples",
+ "test": "./test"
+ },
+
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://raw.github.com/odogono/prng-parkmiller-js/master/LICENSE"
+ }
+ ],
+
+ "main": "pm_prng.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com:odogono/prng-parkmiller-js.git"
+ },
+
"devDependencies":{
"mocha":">= 1.0.2"
},

0 comments on commit 112d657

Please sign in to comment.