Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
```