-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
33 lines (33 loc) · 4.52 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"author": {
"name": "Xiangyi Kong",
"email": "xy.kong@gmail.com"
},
"name": "mt19937",
"version": "0.0.4",
"description": "Mersenne Twister 19937 generator",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"install": "node-gyp rebuild"
},
"repository": {
"type": "git",
"url": "https://github.com/xykong/mt19937.git"
},
"keywords": [
"mt19937",
"random"
],
"private": false,
"readme": "# mt19937: a node.js Mersenne Twister 19937 generator #\n\n`mt19937` is A Mersenne Twister pseudo-random generator of 32-bit numbers with a state size of 19937 bits.\n\nSee http://beam.acclab.helsinki.fi/~knordlun/mc/mt19937.c for detail implement information.\n\nThe following is the C source code declation:\n\n/* A C-program for MT19937: Real number version */\n/* genrand() generates one pseudorandom real number (double) */\n/* which is uniformly distributed on [0,1]-interval, for each */\n/* call. sgenrand(seed) set initial values to the working area */\n/* of 624 words. Before genrand(), sgenrand(seed) must be */\n/* called once. (seed is any 32-bit integer except for 0). */\n/* Integer generator is obtained by modifying two lines. */\n/* Coded by Takuji Nishimura, considering the suggestions by */\n/* Topher Cooper and Marc Rieffel in July-Aug. 1997. */\n\n/* This library is free software; you can redistribute it and/or */\n/* modify it under the terms of the GNU Library General Public */\n/* License as published by the Free Software Foundation; either */\n/* version 2 of the License, or (at your option) any later */\n/* version. */\n/* This library is distributed in the hope that it will be useful, */\n/* but WITHOUT ANY WARRANTY; without even the implied warranty of */\n/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */\n/* See the GNU Library General Public License for more details. */\n/* You should have received a copy of the GNU Library General */\n/* Public License along with this library; if not, write to the */\n/* Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */ \n/* 02111-1307 USA */\n\n/* Copyright (C) 1997 Makoto Matsumoto and Takuji Nishimura. */\n/* Any feedback is very welcome. For any question, comments, */\n/* see http://www.math.keio.ac.jp/matumoto/emt.html or email */\n/* matumoto@math.keio.ac.jp */\n\n## Usage ##\n\n### Installing ###\n\n`npm install mt19937`\n\n### About seed ###\n\nThe default seed is 4357, Call Srand() set the seed if you need before Fetch any Number.\n\n### Set Seed ###\n\n```js\nvar mt19937 = require('mt19937');\n\nconsole.log(mt19937.Srand(4357));\n```\n\n### Fetch a 32bit number ###\n\n```js\nvar mt19937 = require('mt19937');\n\nconsole.log(mt19937.Rand());\n```\n\n### Fetch a real number (double) ###\n\n```js\nvar mt19937 = require('mt19937');\n\nconsole.log(mt19937.RandReal());\n```\n\n## License ##\n\n(The MIT License)\n\nCopyright (c) 2013 Xiangyi Kong <xy.kong@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
"readmeFilename": "README.md",
"_id": "mt19937@0.0.4",
"_from": "mt19937@",
"license": "MIT",
"gypfile": true,
"dist": {
"shasum": "5062dfa9033f13370daef3a57c85876eaf91aab2"
},
"_resolved": "https://registry.npmjs.org/mt19937/-/mt19937-0.0.4.tgz"
}