Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesbarwell/random-character-generator.js
Generates random ASCII characters from a seed
https://github.com/jamesbarwell/random-character-generator.js
Last synced: 15 days ago
JSON representation
Generates random ASCII characters from a seed
- Host: GitHub
- URL: https://github.com/jamesbarwell/random-character-generator.js
- Owner: JamesBarwell
- License: mit
- Created: 2015-12-19T18:52:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T18:56:39.000Z (almost 9 years ago)
- Last Synced: 2024-10-10T00:09:01.075Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Generates random ASCII characters from a seed
Can be used either deterministically or pseudo-randomly depending on how it is seeded.
Install using npm:
```
npm install random-character-generator
```Example of use:
```
var randomCharGen = require('random-character-generator')
var Readable = require('stream').Readable;var seed = process.argv[2] || 123
var generator = randomCharGen(seed)var rs = Readable();
rs._read = function() {
rs.push(generator.next().value);
}
rs.pipe(process.stdout)
```