brando
Advanced tools
Comparing version 0.0.49 to 0.0.50
{ | ||
"name": "brando" | ||
, "version": "0.0.49" | ||
, "version": "0.0.50" | ||
, "description": "Brando." | ||
@@ -5,0 +5,0 @@ , "homepage": "https://github.com/rootslab/brando" |
@@ -68,6 +68,8 @@ ### Brando | ||
> A simple factory method, it returns an EventEmitter that parses random data and emits results | ||
> with selected items and within the selelected range . | ||
> It repetition is off, it returns a _[Sequence](lib/filters/emitters/sequence)_ (_EventEmitter_), | ||
> otherwise a sub-type of Sequence, if items === range, a _[FullPerm](lib/filters/emitters/fullperm)_, | ||
> else a _[PartPerm](lib/filters/emitters/partperm)_. | ||
> with the number of selected items and within the selected range. Intrnally, it creates an empty | ||
> Buffer of the desired length for result values, you could fill it with Math.random or through a | ||
> random source of data. | ||
> It repetition is off, it returns a _[Sequence](lib/filters/emitters/sequence)_, otherwise a | ||
> sub-type of Sequence; when items value is equal to range, it returns a _[FullPerm](lib/filters/emitters/fullperm)_, | ||
> otherwise a _[PartPerm](lib/filters/emitters/partperm)_. | ||
@@ -90,2 +92,6 @@ ```javascript | ||
* | ||
* - for executing multiple times a (trivial) Fisher-Yates shuffle, after #fill or #parse. | ||
* | ||
* Sequence#shuffle : function ( [ Number times ] ) : Sequence | ||
* | ||
* - for resetting internal status and result buffer, before reusing it: | ||
@@ -92,0 +98,0 @@ * |
74526
180