@fgv/ts-random 5.1.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/jest.config.json +13 -0
- package/config/rig.json +4 -0
- package/config/typedoc.json +7 -0
- package/docs/Chars/README.md +152 -0
- package/docs/Chars/variables/all.md +9 -0
- package/docs/Chars/variables/alphanumeric.md +9 -0
- package/docs/Chars/variables/base64.md +9 -0
- package/docs/Chars/variables/base64Url.md +9 -0
- package/docs/Chars/variables/base64UrlNoPadding.md +9 -0
- package/docs/Chars/variables/digits.md +9 -0
- package/docs/Chars/variables/hex.md +9 -0
- package/docs/Chars/variables/hexDigits.md +9 -0
- package/docs/Chars/variables/hexDigitsUpper.md +9 -0
- package/docs/Chars/variables/letters.md +9 -0
- package/docs/Chars/variables/lowerCase.md +9 -0
- package/docs/Chars/variables/printable.md +9 -0
- package/docs/Chars/variables/symbols.md +9 -0
- package/docs/Chars/variables/upperCase.md +9 -0
- package/docs/Chars/variables/whitespace.md +9 -0
- package/docs/Generator/README.md +153 -0
- package/docs/Generator/classes/PseudoRandomGenerator.clone.md +17 -0
- package/docs/Generator/classes/PseudoRandomGenerator.create.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.createChild.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.ensureRng.md +25 -0
- package/docs/Generator/classes/PseudoRandomGenerator.getGlobalRng.md +17 -0
- package/docs/Generator/classes/PseudoRandomGenerator.md +258 -0
- package/docs/Generator/classes/PseudoRandomGenerator.nextBoolean.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.nextFloat.md +17 -0
- package/docs/Generator/classes/PseudoRandomGenerator.nextInRange.md +25 -0
- package/docs/Generator/classes/PseudoRandomGenerator.nextInt.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.nextString.md +25 -0
- package/docs/Generator/classes/PseudoRandomGenerator.pickNext.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.pickRandom.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.pickSequence.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.pickSequential.md +24 -0
- package/docs/Generator/classes/PseudoRandomGenerator.rng.md +11 -0
- package/docs/Generator/classes/PseudoRandomGenerator.setGlobalRng.md +24 -0
- package/docs/Generator/classes/SeededRandomSource.clone.md +17 -0
- package/docs/Generator/classes/SeededRandomSource.counter.md +11 -0
- package/docs/Generator/classes/SeededRandomSource.create.md +24 -0
- package/docs/Generator/classes/SeededRandomSource.createChild.md +24 -0
- package/docs/Generator/classes/SeededRandomSource.hashSeed.md +24 -0
- package/docs/Generator/classes/SeededRandomSource.hashStateAndLabel.md +25 -0
- package/docs/Generator/classes/SeededRandomSource.lineage.md +9 -0
- package/docs/Generator/classes/SeededRandomSource.md +187 -0
- package/docs/Generator/classes/SeededRandomSource.mulberryStep.md +24 -0
- package/docs/Generator/classes/SeededRandomSource.next.md +17 -0
- package/docs/Generator/classes/SeededRandomSource.seed.md +9 -0
- package/docs/Generator/interfaces/INextResult.md +61 -0
- package/docs/Generator/interfaces/INextResult.nextState.md +9 -0
- package/docs/Generator/interfaces/INextResult.value.md +9 -0
- package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.global.md +9 -0
- package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.md +78 -0
- package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.seed.md +9 -0
- package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.step.md +9 -0
- package/docs/Generator/interfaces/IRandomSequencePickParams.candidates.md +9 -0
- package/docs/Generator/interfaces/IRandomSequencePickParams.count.md +9 -0
- package/docs/Generator/interfaces/IRandomSequencePickParams.how.md +9 -0
- package/docs/Generator/interfaces/IRandomSequencePickParams.md +79 -0
- package/docs/Generator/interfaces/ISeedPair.md +61 -0
- package/docs/Generator/interfaces/ISeedPair.seed.md +9 -0
- package/docs/Generator/interfaces/ISeedPair.state.md +9 -0
- package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.counter.md +9 -0
- package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.lineage.md +9 -0
- package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.md +112 -0
- package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.seed.md +9 -0
- package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.state.md +9 -0
- package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.step.md +9 -0
- package/docs/Generator/interfaces/ISeededRandomSourceCreateParams.md +61 -0
- package/docs/Generator/interfaces/ISeededRandomSourceCreateParams.seed.md +9 -0
- package/docs/Generator/interfaces/ISeededRandomSourceCreateParams.step.md +9 -0
- package/docs/Generator/interfaces/ISequentialPickParams.candidates.md +9 -0
- package/docs/Generator/interfaces/ISequentialPickParams.count.md +9 -0
- package/docs/Generator/interfaces/ISequentialPickParams.how.md +9 -0
- package/docs/Generator/interfaces/ISequentialPickParams.md +79 -0
- package/docs/Generator/type-aliases/GeneratorGlobalThis.md +11 -0
- package/docs/Generator/type-aliases/RandomStepFunction.md +11 -0
- package/docs/Generator/type-aliases/SequencePickParams.md +11 -0
- package/docs/GeneratorData/Chars/README.md +152 -0
- package/docs/GeneratorData/Chars/variables/all.md +9 -0
- package/docs/GeneratorData/Chars/variables/alphanumeric.md +9 -0
- package/docs/GeneratorData/Chars/variables/base64.md +9 -0
- package/docs/GeneratorData/Chars/variables/base64Url.md +9 -0
- package/docs/GeneratorData/Chars/variables/base64UrlNoPadding.md +9 -0
- package/docs/GeneratorData/Chars/variables/digits.md +9 -0
- package/docs/GeneratorData/Chars/variables/hex.md +9 -0
- package/docs/GeneratorData/Chars/variables/hexDigits.md +9 -0
- package/docs/GeneratorData/Chars/variables/hexDigitsUpper.md +9 -0
- package/docs/GeneratorData/Chars/variables/letters.md +9 -0
- package/docs/GeneratorData/Chars/variables/lowerCase.md +9 -0
- package/docs/GeneratorData/Chars/variables/printable.md +9 -0
- package/docs/GeneratorData/Chars/variables/symbols.md +9 -0
- package/docs/GeneratorData/Chars/variables/upperCase.md +9 -0
- package/docs/GeneratorData/Chars/variables/whitespace.md +9 -0
- package/docs/GeneratorData/README.md +35 -0
- package/docs/GeneratorData/Words/README.md +125 -0
- package/docs/GeneratorData/Words/variables/Adjectives.md +7 -0
- package/docs/GeneratorData/Words/variables/Animals.md +7 -0
- package/docs/GeneratorData/Words/variables/Cities.md +7 -0
- package/docs/GeneratorData/Words/variables/Colors.md +7 -0
- package/docs/GeneratorData/Words/variables/Countries.md +7 -0
- package/docs/GeneratorData/Words/variables/Domains.md +7 -0
- package/docs/GeneratorData/Words/variables/FamilyNames.md +9 -0
- package/docs/GeneratorData/Words/variables/FirstNames.md +9 -0
- package/docs/GeneratorData/Words/variables/FirstNamesFemale.md +9 -0
- package/docs/GeneratorData/Words/variables/FirstNamesMale.md +9 -0
- package/docs/GeneratorData/Words/variables/Gerunds.md +7 -0
- package/docs/GeneratorData/Words/variables/jobs.md +7 -0
- package/docs/GeneratorData/variables/Adjectives.md +7 -0
- package/docs/GeneratorData/variables/Animals.md +7 -0
- package/docs/GeneratorData/variables/Cities.md +7 -0
- package/docs/GeneratorData/variables/Colors.md +7 -0
- package/docs/GeneratorData/variables/Countries.md +7 -0
- package/docs/GeneratorData/variables/Domains.md +7 -0
- package/docs/GeneratorData/variables/FamilyNames.md +9 -0
- package/docs/GeneratorData/variables/FirstNames.md +9 -0
- package/docs/GeneratorData/variables/FirstNamesFemale.md +9 -0
- package/docs/GeneratorData/variables/FirstNamesMale.md +9 -0
- package/docs/GeneratorData/variables/Gerunds.md +7 -0
- package/docs/GeneratorData/variables/all.md +9 -0
- package/docs/GeneratorData/variables/alphanumeric.md +9 -0
- package/docs/GeneratorData/variables/base64.md +9 -0
- package/docs/GeneratorData/variables/base64Url.md +9 -0
- package/docs/GeneratorData/variables/base64UrlNoPadding.md +9 -0
- package/docs/GeneratorData/variables/digits.md +9 -0
- package/docs/GeneratorData/variables/hex.md +9 -0
- package/docs/GeneratorData/variables/hexDigits.md +9 -0
- package/docs/GeneratorData/variables/hexDigitsUpper.md +9 -0
- package/docs/GeneratorData/variables/jobs.md +7 -0
- package/docs/GeneratorData/variables/letters.md +9 -0
- package/docs/GeneratorData/variables/lowerCase.md +9 -0
- package/docs/GeneratorData/variables/printable.md +9 -0
- package/docs/GeneratorData/variables/symbols.md +9 -0
- package/docs/GeneratorData/variables/upperCase.md +9 -0
- package/docs/GeneratorData/variables/whitespace.md +9 -0
- package/docs/README.md +35 -0
- package/docs/Words/README.md +125 -0
- package/docs/Words/variables/Adjectives.md +7 -0
- package/docs/Words/variables/Animals.md +7 -0
- package/docs/Words/variables/Cities.md +7 -0
- package/docs/Words/variables/Colors.md +7 -0
- package/docs/Words/variables/Countries.md +7 -0
- package/docs/Words/variables/Domains.md +7 -0
- package/docs/Words/variables/FamilyNames.md +9 -0
- package/docs/Words/variables/FirstNames.md +9 -0
- package/docs/Words/variables/FirstNamesFemale.md +9 -0
- package/docs/Words/variables/FirstNamesMale.md +9 -0
- package/docs/Words/variables/Gerunds.md +7 -0
- package/docs/Words/variables/jobs.md +7 -0
- package/docs/classes/PseudoRandomGenerator.clone.md +17 -0
- package/docs/classes/PseudoRandomGenerator.create.md +24 -0
- package/docs/classes/PseudoRandomGenerator.createChild.md +24 -0
- package/docs/classes/PseudoRandomGenerator.ensureRng.md +25 -0
- package/docs/classes/PseudoRandomGenerator.getGlobalRng.md +17 -0
- package/docs/classes/PseudoRandomGenerator.md +258 -0
- package/docs/classes/PseudoRandomGenerator.nextBoolean.md +24 -0
- package/docs/classes/PseudoRandomGenerator.nextFloat.md +17 -0
- package/docs/classes/PseudoRandomGenerator.nextInRange.md +25 -0
- package/docs/classes/PseudoRandomGenerator.nextInt.md +24 -0
- package/docs/classes/PseudoRandomGenerator.nextString.md +25 -0
- package/docs/classes/PseudoRandomGenerator.pickNext.md +24 -0
- package/docs/classes/PseudoRandomGenerator.pickRandom.md +24 -0
- package/docs/classes/PseudoRandomGenerator.pickSequence.md +24 -0
- package/docs/classes/PseudoRandomGenerator.pickSequential.md +24 -0
- package/docs/classes/PseudoRandomGenerator.rng.md +11 -0
- package/docs/classes/PseudoRandomGenerator.setGlobalRng.md +24 -0
- package/docs/classes/SeededRandomSource.clone.md +17 -0
- package/docs/classes/SeededRandomSource.counter.md +11 -0
- package/docs/classes/SeededRandomSource.create.md +24 -0
- package/docs/classes/SeededRandomSource.createChild.md +24 -0
- package/docs/classes/SeededRandomSource.hashSeed.md +24 -0
- package/docs/classes/SeededRandomSource.hashStateAndLabel.md +25 -0
- package/docs/classes/SeededRandomSource.lineage.md +9 -0
- package/docs/classes/SeededRandomSource.md +187 -0
- package/docs/classes/SeededRandomSource.mulberryStep.md +24 -0
- package/docs/classes/SeededRandomSource.next.md +17 -0
- package/docs/classes/SeededRandomSource.seed.md +9 -0
- package/docs/interfaces/INextResult.md +61 -0
- package/docs/interfaces/INextResult.nextState.md +9 -0
- package/docs/interfaces/INextResult.value.md +9 -0
- package/docs/interfaces/IPseudoRandomGeneratorCreateParams.global.md +9 -0
- package/docs/interfaces/IPseudoRandomGeneratorCreateParams.md +78 -0
- package/docs/interfaces/IPseudoRandomGeneratorCreateParams.seed.md +9 -0
- package/docs/interfaces/IPseudoRandomGeneratorCreateParams.step.md +9 -0
- package/docs/interfaces/IRandomSequencePickParams.candidates.md +9 -0
- package/docs/interfaces/IRandomSequencePickParams.count.md +9 -0
- package/docs/interfaces/IRandomSequencePickParams.how.md +9 -0
- package/docs/interfaces/IRandomSequencePickParams.md +79 -0
- package/docs/interfaces/ISeedPair.md +61 -0
- package/docs/interfaces/ISeedPair.seed.md +9 -0
- package/docs/interfaces/ISeedPair.state.md +9 -0
- package/docs/interfaces/ISeededRandomSourceConstructorParams.counter.md +9 -0
- package/docs/interfaces/ISeededRandomSourceConstructorParams.lineage.md +9 -0
- package/docs/interfaces/ISeededRandomSourceConstructorParams.md +112 -0
- package/docs/interfaces/ISeededRandomSourceConstructorParams.seed.md +9 -0
- package/docs/interfaces/ISeededRandomSourceConstructorParams.state.md +9 -0
- package/docs/interfaces/ISeededRandomSourceConstructorParams.step.md +9 -0
- package/docs/interfaces/ISeededRandomSourceCreateParams.md +61 -0
- package/docs/interfaces/ISeededRandomSourceCreateParams.seed.md +9 -0
- package/docs/interfaces/ISeededRandomSourceCreateParams.step.md +9 -0
- package/docs/interfaces/ISequentialPickParams.candidates.md +9 -0
- package/docs/interfaces/ISequentialPickParams.count.md +9 -0
- package/docs/interfaces/ISequentialPickParams.how.md +9 -0
- package/docs/interfaces/ISequentialPickParams.md +79 -0
- package/docs/type-aliases/GeneratorGlobalThis.md +11 -0
- package/docs/type-aliases/RandomStepFunction.md +11 -0
- package/docs/type-aliases/SequencePickParams.md +11 -0
- package/docs/variables/Adjectives.md +7 -0
- package/docs/variables/Animals.md +7 -0
- package/docs/variables/Cities.md +7 -0
- package/docs/variables/Colors.md +7 -0
- package/docs/variables/Countries.md +7 -0
- package/docs/variables/Domains.md +7 -0
- package/docs/variables/FamilyNames.md +9 -0
- package/docs/variables/FirstNames.md +9 -0
- package/docs/variables/FirstNamesFemale.md +9 -0
- package/docs/variables/FirstNamesMale.md +9 -0
- package/docs/variables/Gerunds.md +7 -0
- package/docs/variables/all.md +9 -0
- package/docs/variables/alphanumeric.md +9 -0
- package/docs/variables/base64.md +9 -0
- package/docs/variables/base64Url.md +9 -0
- package/docs/variables/base64UrlNoPadding.md +9 -0
- package/docs/variables/digits.md +9 -0
- package/docs/variables/hex.md +9 -0
- package/docs/variables/hexDigits.md +9 -0
- package/docs/variables/hexDigitsUpper.md +9 -0
- package/docs/variables/jobs.md +7 -0
- package/docs/variables/letters.md +9 -0
- package/docs/variables/lowerCase.md +9 -0
- package/docs/variables/printable.md +9 -0
- package/docs/variables/symbols.md +9 -0
- package/docs/variables/upperCase.md +9 -0
- package/docs/variables/whitespace.md +9 -0
- package/package.json +49 -0
- package/src/generator/generators.ts +273 -0
- package/src/generator/index.ts +22 -0
- package/src/generator/randomSource.ts +224 -0
- package/src/generator-data/charClasses.ts +95 -0
- package/src/generator-data/index.ts +22 -0
- package/src/generator-data/words/adjectives.ts +247 -0
- package/src/generator-data/words/animals.ts +75 -0
- package/src/generator-data/words/cities.ts +229 -0
- package/src/generator-data/words/colors.ts +56 -0
- package/src/generator-data/words/countries.ts +217 -0
- package/src/generator-data/words/domains.ts +47 -0
- package/src/generator-data/words/gerunds.ts +126 -0
- package/src/generator-data/words/index.ts +29 -0
- package/src/generator-data/words/jobs.ts +175 -0
- package/src/generator-data/words/names.ts +717 -0
- package/src/index.ts +7 -0
- package/src/test/unit/generators.test.ts +697 -0
- package/src/test/unit/randomSource.test.ts +526 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
[Home](../README.md) > IPseudoRandomGeneratorCreateParams
|
|
2
|
+
|
|
3
|
+
# Interface: IPseudoRandomGeneratorCreateParams
|
|
4
|
+
|
|
5
|
+
Parameters for creating a generator.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Property
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Type
|
|
20
|
+
|
|
21
|
+
</th><th>
|
|
22
|
+
|
|
23
|
+
Description
|
|
24
|
+
|
|
25
|
+
</th></tr></thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr><td>
|
|
28
|
+
|
|
29
|
+
[seed](./IPseudoRandomGeneratorCreateParams.seed.md)
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</td><td>
|
|
36
|
+
|
|
37
|
+
string | number
|
|
38
|
+
|
|
39
|
+
</td><td>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td></tr>
|
|
44
|
+
<tr><td>
|
|
45
|
+
|
|
46
|
+
[step](./IPseudoRandomGeneratorCreateParams.step.md)
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
[RandomStepFunction](../type-aliases/RandomStepFunction.md)
|
|
55
|
+
|
|
56
|
+
</td><td>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
<tr><td>
|
|
62
|
+
|
|
63
|
+
[global](./IPseudoRandomGeneratorCreateParams.global.md)
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
</td><td>
|
|
70
|
+
|
|
71
|
+
boolean
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</td></tr>
|
|
78
|
+
</tbody></table>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[Home](../README.md) > IRandomSequencePickParams
|
|
2
|
+
|
|
3
|
+
# Interface: IRandomSequencePickParams
|
|
4
|
+
|
|
5
|
+
Parameters for generating a sequence of values
|
|
6
|
+
by randomly selecting from dictionaries in a supplied set.
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
<table><thead><tr><th>
|
|
11
|
+
|
|
12
|
+
Property
|
|
13
|
+
|
|
14
|
+
</th><th>
|
|
15
|
+
|
|
16
|
+
Modifiers
|
|
17
|
+
|
|
18
|
+
</th><th>
|
|
19
|
+
|
|
20
|
+
Type
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Description
|
|
25
|
+
|
|
26
|
+
</th></tr></thead>
|
|
27
|
+
<tbody>
|
|
28
|
+
<tr><td>
|
|
29
|
+
|
|
30
|
+
[how](./IRandomSequencePickParams.how.md)
|
|
31
|
+
|
|
32
|
+
</td><td>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
</td><td>
|
|
37
|
+
|
|
38
|
+
"random"
|
|
39
|
+
|
|
40
|
+
</td><td>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td></tr>
|
|
45
|
+
<tr><td>
|
|
46
|
+
|
|
47
|
+
[count](./IRandomSequencePickParams.count.md)
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</td><td>
|
|
54
|
+
|
|
55
|
+
number
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
</td></tr>
|
|
62
|
+
<tr><td>
|
|
63
|
+
|
|
64
|
+
[candidates](./IRandomSequencePickParams.candidates.md)
|
|
65
|
+
|
|
66
|
+
</td><td>
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</td><td>
|
|
71
|
+
|
|
72
|
+
readonly T[]
|
|
73
|
+
|
|
74
|
+
</td><td>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
</tbody></table>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[Home](../README.md) > ISeedPair
|
|
2
|
+
|
|
3
|
+
# Interface: ISeedPair
|
|
4
|
+
|
|
5
|
+
Represents a seed as both a string and a number.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Property
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Type
|
|
20
|
+
|
|
21
|
+
</th><th>
|
|
22
|
+
|
|
23
|
+
Description
|
|
24
|
+
|
|
25
|
+
</th></tr></thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr><td>
|
|
28
|
+
|
|
29
|
+
[seed](./ISeedPair.seed.md)
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</td><td>
|
|
36
|
+
|
|
37
|
+
string
|
|
38
|
+
|
|
39
|
+
</td><td>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td></tr>
|
|
44
|
+
<tr><td>
|
|
45
|
+
|
|
46
|
+
[state](./ISeedPair.state.md)
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
number
|
|
55
|
+
|
|
56
|
+
</td><td>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
[Home](../README.md) > ISeededRandomSourceConstructorParams
|
|
2
|
+
|
|
3
|
+
# Interface: ISeededRandomSourceConstructorParams
|
|
4
|
+
|
|
5
|
+
Constructor params for a Generator.SeededRandomSource | SeededRandomSource.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Property
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Type
|
|
20
|
+
|
|
21
|
+
</th><th>
|
|
22
|
+
|
|
23
|
+
Description
|
|
24
|
+
|
|
25
|
+
</th></tr></thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr><td>
|
|
28
|
+
|
|
29
|
+
[state](./ISeededRandomSourceConstructorParams.state.md)
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</td><td>
|
|
36
|
+
|
|
37
|
+
number
|
|
38
|
+
|
|
39
|
+
</td><td>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td></tr>
|
|
44
|
+
<tr><td>
|
|
45
|
+
|
|
46
|
+
[seed](./ISeededRandomSourceConstructorParams.seed.md)
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
string
|
|
55
|
+
|
|
56
|
+
</td><td>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
<tr><td>
|
|
62
|
+
|
|
63
|
+
[counter](./ISeededRandomSourceConstructorParams.counter.md)
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
</td><td>
|
|
70
|
+
|
|
71
|
+
number
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</td></tr>
|
|
78
|
+
<tr><td>
|
|
79
|
+
|
|
80
|
+
[lineage](./ISeededRandomSourceConstructorParams.lineage.md)
|
|
81
|
+
|
|
82
|
+
</td><td>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</td><td>
|
|
87
|
+
|
|
88
|
+
readonly string[]
|
|
89
|
+
|
|
90
|
+
</td><td>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td></tr>
|
|
95
|
+
<tr><td>
|
|
96
|
+
|
|
97
|
+
[step](./ISeededRandomSourceConstructorParams.step.md)
|
|
98
|
+
|
|
99
|
+
</td><td>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
[RandomStepFunction](../type-aliases/RandomStepFunction.md)
|
|
106
|
+
|
|
107
|
+
</td><td>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</td></tr>
|
|
112
|
+
</tbody></table>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[Home](../README.md) > ISeededRandomSourceCreateParams
|
|
2
|
+
|
|
3
|
+
# Interface: ISeededRandomSourceCreateParams
|
|
4
|
+
|
|
5
|
+
Static create parameters for a Generator.SeededRandomSource | SeededRandomSource.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Property
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Type
|
|
20
|
+
|
|
21
|
+
</th><th>
|
|
22
|
+
|
|
23
|
+
Description
|
|
24
|
+
|
|
25
|
+
</th></tr></thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr><td>
|
|
28
|
+
|
|
29
|
+
[seed](./ISeededRandomSourceCreateParams.seed.md)
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</td><td>
|
|
36
|
+
|
|
37
|
+
string | number
|
|
38
|
+
|
|
39
|
+
</td><td>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td></tr>
|
|
44
|
+
<tr><td>
|
|
45
|
+
|
|
46
|
+
[step](./ISeededRandomSourceCreateParams.step.md)
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
[RandomStepFunction](../type-aliases/RandomStepFunction.md)
|
|
55
|
+
|
|
56
|
+
</td><td>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[Home](../README.md) > ISequentialPickParams
|
|
2
|
+
|
|
3
|
+
# Interface: ISequentialPickParams
|
|
4
|
+
|
|
5
|
+
Parameters for generating a sequence of values
|
|
6
|
+
from each dictionary in a supplied set, in turn.
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
<table><thead><tr><th>
|
|
11
|
+
|
|
12
|
+
Property
|
|
13
|
+
|
|
14
|
+
</th><th>
|
|
15
|
+
|
|
16
|
+
Modifiers
|
|
17
|
+
|
|
18
|
+
</th><th>
|
|
19
|
+
|
|
20
|
+
Type
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Description
|
|
25
|
+
|
|
26
|
+
</th></tr></thead>
|
|
27
|
+
<tbody>
|
|
28
|
+
<tr><td>
|
|
29
|
+
|
|
30
|
+
[how](./ISequentialPickParams.how.md)
|
|
31
|
+
|
|
32
|
+
</td><td>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
</td><td>
|
|
37
|
+
|
|
38
|
+
"sequence"
|
|
39
|
+
|
|
40
|
+
</td><td>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td></tr>
|
|
45
|
+
<tr><td>
|
|
46
|
+
|
|
47
|
+
[count](./ISequentialPickParams.count.md)
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</td><td>
|
|
54
|
+
|
|
55
|
+
number
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
</td></tr>
|
|
62
|
+
<tr><td>
|
|
63
|
+
|
|
64
|
+
[candidates](./ISequentialPickParams.candidates.md)
|
|
65
|
+
|
|
66
|
+
</td><td>
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</td><td>
|
|
71
|
+
|
|
72
|
+
readonly (readonly T[])[]
|
|
73
|
+
|
|
74
|
+
</td><td>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
</tbody></table>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Home](../README.md) > RandomStepFunction
|
|
2
|
+
|
|
3
|
+
# Type Alias: RandomStepFunction
|
|
4
|
+
|
|
5
|
+
Function that steps a random number generator state and returns the next value.
|
|
6
|
+
|
|
7
|
+
## Type
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
type RandomStepFunction = (state: number) => INextResult
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Home](../README.md) > SequencePickParams
|
|
2
|
+
|
|
3
|
+
# Type Alias: SequencePickParams
|
|
4
|
+
|
|
5
|
+
Type representing parameters for generating a sequence of values.
|
|
6
|
+
|
|
7
|
+
## Type
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
type SequencePickParams = ISequentialPickParams<T> | IRandomSequencePickParams<T>
|
|
11
|
+
```
|