@fgv/ts-random 5.1.0-19 → 5.1.0-21

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.
Files changed (273) hide show
  1. package/package.json +6 -6
  2. package/.rush/temp/chunked-rush-logs/ts-random.build.chunks.jsonl +0 -6
  3. package/.rush/temp/fba88d771243a88edd09f745ba7194831032f604.tar.log +0 -121
  4. package/.rush/temp/operation/build/all.log +0 -6
  5. package/.rush/temp/operation/build/log-chunks.jsonl +0 -6
  6. package/.rush/temp/operation/build/state.json +0 -3
  7. package/.rush/temp/shrinkwrap-deps.json +0 -614
  8. package/config/jest.config.json +0 -13
  9. package/config/rig.json +0 -4
  10. package/config/typedoc.json +0 -7
  11. package/dist/test/unit/generators.test.js +0 -596
  12. package/dist/test/unit/generators.test.js.map +0 -1
  13. package/dist/test/unit/randomSource.test.js +0 -452
  14. package/dist/test/unit/randomSource.test.js.map +0 -1
  15. package/docs/Chars/README.md +0 -152
  16. package/docs/Chars/variables/all.md +0 -9
  17. package/docs/Chars/variables/alphanumeric.md +0 -9
  18. package/docs/Chars/variables/base64.md +0 -9
  19. package/docs/Chars/variables/base64Url.md +0 -9
  20. package/docs/Chars/variables/base64UrlNoPadding.md +0 -9
  21. package/docs/Chars/variables/digits.md +0 -9
  22. package/docs/Chars/variables/hex.md +0 -9
  23. package/docs/Chars/variables/hexDigits.md +0 -9
  24. package/docs/Chars/variables/hexDigitsUpper.md +0 -9
  25. package/docs/Chars/variables/letters.md +0 -9
  26. package/docs/Chars/variables/lowerCase.md +0 -9
  27. package/docs/Chars/variables/printable.md +0 -9
  28. package/docs/Chars/variables/symbols.md +0 -9
  29. package/docs/Chars/variables/upperCase.md +0 -9
  30. package/docs/Chars/variables/whitespace.md +0 -9
  31. package/docs/Generator/README.md +0 -144
  32. package/docs/Generator/classes/PseudoRandomGenerator.clone.md +0 -17
  33. package/docs/Generator/classes/PseudoRandomGenerator.create.md +0 -24
  34. package/docs/Generator/classes/PseudoRandomGenerator.createChild.md +0 -24
  35. package/docs/Generator/classes/PseudoRandomGenerator.ensureRng.md +0 -25
  36. package/docs/Generator/classes/PseudoRandomGenerator.getGlobalRng.md +0 -17
  37. package/docs/Generator/classes/PseudoRandomGenerator.md +0 -258
  38. package/docs/Generator/classes/PseudoRandomGenerator.nextBoolean.md +0 -24
  39. package/docs/Generator/classes/PseudoRandomGenerator.nextFloat.md +0 -17
  40. package/docs/Generator/classes/PseudoRandomGenerator.nextInRange.md +0 -25
  41. package/docs/Generator/classes/PseudoRandomGenerator.nextInt.md +0 -24
  42. package/docs/Generator/classes/PseudoRandomGenerator.nextString.md +0 -25
  43. package/docs/Generator/classes/PseudoRandomGenerator.pickNext.md +0 -24
  44. package/docs/Generator/classes/PseudoRandomGenerator.pickRandom.md +0 -25
  45. package/docs/Generator/classes/PseudoRandomGenerator.pickSequence.md +0 -24
  46. package/docs/Generator/classes/PseudoRandomGenerator.pickSequential.md +0 -25
  47. package/docs/Generator/classes/PseudoRandomGenerator.rng.md +0 -11
  48. package/docs/Generator/classes/PseudoRandomGenerator.setGlobalRng.md +0 -24
  49. package/docs/Generator/classes/SeededRandomSource.clone.md +0 -17
  50. package/docs/Generator/classes/SeededRandomSource.counter.md +0 -11
  51. package/docs/Generator/classes/SeededRandomSource.create.md +0 -24
  52. package/docs/Generator/classes/SeededRandomSource.createChild.md +0 -24
  53. package/docs/Generator/classes/SeededRandomSource.hashSeed.md +0 -24
  54. package/docs/Generator/classes/SeededRandomSource.hashStateAndLabel.md +0 -25
  55. package/docs/Generator/classes/SeededRandomSource.lineage.md +0 -9
  56. package/docs/Generator/classes/SeededRandomSource.md +0 -187
  57. package/docs/Generator/classes/SeededRandomSource.mulberryStep.md +0 -24
  58. package/docs/Generator/classes/SeededRandomSource.next.md +0 -17
  59. package/docs/Generator/classes/SeededRandomSource.seed.md +0 -9
  60. package/docs/Generator/interfaces/INextResult.md +0 -61
  61. package/docs/Generator/interfaces/INextResult.nextState.md +0 -9
  62. package/docs/Generator/interfaces/INextResult.value.md +0 -9
  63. package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.global.md +0 -9
  64. package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.md +0 -78
  65. package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.seed.md +0 -9
  66. package/docs/Generator/interfaces/IPseudoRandomGeneratorCreateParams.step.md +0 -9
  67. package/docs/Generator/interfaces/IRandomSequencePickParams.candidates.md +0 -9
  68. package/docs/Generator/interfaces/IRandomSequencePickParams.count.md +0 -9
  69. package/docs/Generator/interfaces/IRandomSequencePickParams.how.md +0 -9
  70. package/docs/Generator/interfaces/IRandomSequencePickParams.md +0 -79
  71. package/docs/Generator/interfaces/ISeedPair.md +0 -61
  72. package/docs/Generator/interfaces/ISeedPair.seed.md +0 -9
  73. package/docs/Generator/interfaces/ISeedPair.state.md +0 -9
  74. package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.counter.md +0 -9
  75. package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.lineage.md +0 -9
  76. package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.md +0 -112
  77. package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.seed.md +0 -9
  78. package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.state.md +0 -9
  79. package/docs/Generator/interfaces/ISeededRandomSourceConstructorParams.step.md +0 -9
  80. package/docs/Generator/interfaces/ISeededRandomSourceCreateParams.md +0 -61
  81. package/docs/Generator/interfaces/ISeededRandomSourceCreateParams.seed.md +0 -9
  82. package/docs/Generator/interfaces/ISeededRandomSourceCreateParams.step.md +0 -9
  83. package/docs/Generator/interfaces/ISequentialPickParams.candidates.md +0 -9
  84. package/docs/Generator/interfaces/ISequentialPickParams.count.md +0 -9
  85. package/docs/Generator/interfaces/ISequentialPickParams.how.md +0 -9
  86. package/docs/Generator/interfaces/ISequentialPickParams.md +0 -79
  87. package/docs/Generator/type-aliases/RandomStepFunction.md +0 -11
  88. package/docs/Generator/type-aliases/SequencePickParams.md +0 -11
  89. package/docs/GeneratorData/Chars/README.md +0 -152
  90. package/docs/GeneratorData/Chars/variables/all.md +0 -9
  91. package/docs/GeneratorData/Chars/variables/alphanumeric.md +0 -9
  92. package/docs/GeneratorData/Chars/variables/base64.md +0 -9
  93. package/docs/GeneratorData/Chars/variables/base64Url.md +0 -9
  94. package/docs/GeneratorData/Chars/variables/base64UrlNoPadding.md +0 -9
  95. package/docs/GeneratorData/Chars/variables/digits.md +0 -9
  96. package/docs/GeneratorData/Chars/variables/hex.md +0 -9
  97. package/docs/GeneratorData/Chars/variables/hexDigits.md +0 -9
  98. package/docs/GeneratorData/Chars/variables/hexDigitsUpper.md +0 -9
  99. package/docs/GeneratorData/Chars/variables/letters.md +0 -9
  100. package/docs/GeneratorData/Chars/variables/lowerCase.md +0 -9
  101. package/docs/GeneratorData/Chars/variables/printable.md +0 -9
  102. package/docs/GeneratorData/Chars/variables/symbols.md +0 -9
  103. package/docs/GeneratorData/Chars/variables/upperCase.md +0 -9
  104. package/docs/GeneratorData/Chars/variables/whitespace.md +0 -9
  105. package/docs/GeneratorData/README.md +0 -35
  106. package/docs/GeneratorData/Words/README.md +0 -125
  107. package/docs/GeneratorData/Words/variables/Adjectives.md +0 -7
  108. package/docs/GeneratorData/Words/variables/Animals.md +0 -7
  109. package/docs/GeneratorData/Words/variables/Cities.md +0 -7
  110. package/docs/GeneratorData/Words/variables/Colors.md +0 -7
  111. package/docs/GeneratorData/Words/variables/Countries.md +0 -7
  112. package/docs/GeneratorData/Words/variables/Domains.md +0 -7
  113. package/docs/GeneratorData/Words/variables/FamilyNames.md +0 -9
  114. package/docs/GeneratorData/Words/variables/FirstNames.md +0 -9
  115. package/docs/GeneratorData/Words/variables/FirstNamesFemale.md +0 -9
  116. package/docs/GeneratorData/Words/variables/FirstNamesMale.md +0 -9
  117. package/docs/GeneratorData/Words/variables/Gerunds.md +0 -7
  118. package/docs/GeneratorData/Words/variables/jobs.md +0 -7
  119. package/docs/GeneratorData/variables/Adjectives.md +0 -7
  120. package/docs/GeneratorData/variables/Animals.md +0 -7
  121. package/docs/GeneratorData/variables/Cities.md +0 -7
  122. package/docs/GeneratorData/variables/Colors.md +0 -7
  123. package/docs/GeneratorData/variables/Countries.md +0 -7
  124. package/docs/GeneratorData/variables/Domains.md +0 -7
  125. package/docs/GeneratorData/variables/FamilyNames.md +0 -9
  126. package/docs/GeneratorData/variables/FirstNames.md +0 -9
  127. package/docs/GeneratorData/variables/FirstNamesFemale.md +0 -9
  128. package/docs/GeneratorData/variables/FirstNamesMale.md +0 -9
  129. package/docs/GeneratorData/variables/Gerunds.md +0 -7
  130. package/docs/GeneratorData/variables/all.md +0 -9
  131. package/docs/GeneratorData/variables/alphanumeric.md +0 -9
  132. package/docs/GeneratorData/variables/base64.md +0 -9
  133. package/docs/GeneratorData/variables/base64Url.md +0 -9
  134. package/docs/GeneratorData/variables/base64UrlNoPadding.md +0 -9
  135. package/docs/GeneratorData/variables/digits.md +0 -9
  136. package/docs/GeneratorData/variables/hex.md +0 -9
  137. package/docs/GeneratorData/variables/hexDigits.md +0 -9
  138. package/docs/GeneratorData/variables/hexDigitsUpper.md +0 -9
  139. package/docs/GeneratorData/variables/jobs.md +0 -7
  140. package/docs/GeneratorData/variables/letters.md +0 -9
  141. package/docs/GeneratorData/variables/lowerCase.md +0 -9
  142. package/docs/GeneratorData/variables/printable.md +0 -9
  143. package/docs/GeneratorData/variables/symbols.md +0 -9
  144. package/docs/GeneratorData/variables/upperCase.md +0 -9
  145. package/docs/GeneratorData/variables/whitespace.md +0 -9
  146. package/docs/README.md +0 -35
  147. package/docs/Words/README.md +0 -125
  148. package/docs/Words/variables/Adjectives.md +0 -7
  149. package/docs/Words/variables/Animals.md +0 -7
  150. package/docs/Words/variables/Cities.md +0 -7
  151. package/docs/Words/variables/Colors.md +0 -7
  152. package/docs/Words/variables/Countries.md +0 -7
  153. package/docs/Words/variables/Domains.md +0 -7
  154. package/docs/Words/variables/FamilyNames.md +0 -9
  155. package/docs/Words/variables/FirstNames.md +0 -9
  156. package/docs/Words/variables/FirstNamesFemale.md +0 -9
  157. package/docs/Words/variables/FirstNamesMale.md +0 -9
  158. package/docs/Words/variables/Gerunds.md +0 -7
  159. package/docs/Words/variables/jobs.md +0 -7
  160. package/docs/classes/PseudoRandomGenerator.clone.md +0 -17
  161. package/docs/classes/PseudoRandomGenerator.create.md +0 -24
  162. package/docs/classes/PseudoRandomGenerator.createChild.md +0 -24
  163. package/docs/classes/PseudoRandomGenerator.ensureRng.md +0 -25
  164. package/docs/classes/PseudoRandomGenerator.getGlobalRng.md +0 -17
  165. package/docs/classes/PseudoRandomGenerator.md +0 -258
  166. package/docs/classes/PseudoRandomGenerator.nextBoolean.md +0 -24
  167. package/docs/classes/PseudoRandomGenerator.nextFloat.md +0 -17
  168. package/docs/classes/PseudoRandomGenerator.nextInRange.md +0 -25
  169. package/docs/classes/PseudoRandomGenerator.nextInt.md +0 -24
  170. package/docs/classes/PseudoRandomGenerator.nextString.md +0 -25
  171. package/docs/classes/PseudoRandomGenerator.pickNext.md +0 -24
  172. package/docs/classes/PseudoRandomGenerator.pickRandom.md +0 -25
  173. package/docs/classes/PseudoRandomGenerator.pickSequence.md +0 -24
  174. package/docs/classes/PseudoRandomGenerator.pickSequential.md +0 -25
  175. package/docs/classes/PseudoRandomGenerator.rng.md +0 -11
  176. package/docs/classes/PseudoRandomGenerator.setGlobalRng.md +0 -24
  177. package/docs/classes/SeededRandomSource.clone.md +0 -17
  178. package/docs/classes/SeededRandomSource.counter.md +0 -11
  179. package/docs/classes/SeededRandomSource.create.md +0 -24
  180. package/docs/classes/SeededRandomSource.createChild.md +0 -24
  181. package/docs/classes/SeededRandomSource.hashSeed.md +0 -24
  182. package/docs/classes/SeededRandomSource.hashStateAndLabel.md +0 -25
  183. package/docs/classes/SeededRandomSource.lineage.md +0 -9
  184. package/docs/classes/SeededRandomSource.md +0 -187
  185. package/docs/classes/SeededRandomSource.mulberryStep.md +0 -24
  186. package/docs/classes/SeededRandomSource.next.md +0 -17
  187. package/docs/classes/SeededRandomSource.seed.md +0 -9
  188. package/docs/interfaces/INextResult.md +0 -61
  189. package/docs/interfaces/INextResult.nextState.md +0 -9
  190. package/docs/interfaces/INextResult.value.md +0 -9
  191. package/docs/interfaces/IPseudoRandomGeneratorCreateParams.global.md +0 -9
  192. package/docs/interfaces/IPseudoRandomGeneratorCreateParams.md +0 -78
  193. package/docs/interfaces/IPseudoRandomGeneratorCreateParams.seed.md +0 -9
  194. package/docs/interfaces/IPseudoRandomGeneratorCreateParams.step.md +0 -9
  195. package/docs/interfaces/IRandomSequencePickParams.candidates.md +0 -9
  196. package/docs/interfaces/IRandomSequencePickParams.count.md +0 -9
  197. package/docs/interfaces/IRandomSequencePickParams.how.md +0 -9
  198. package/docs/interfaces/IRandomSequencePickParams.md +0 -79
  199. package/docs/interfaces/ISeedPair.md +0 -61
  200. package/docs/interfaces/ISeedPair.seed.md +0 -9
  201. package/docs/interfaces/ISeedPair.state.md +0 -9
  202. package/docs/interfaces/ISeededRandomSourceConstructorParams.counter.md +0 -9
  203. package/docs/interfaces/ISeededRandomSourceConstructorParams.lineage.md +0 -9
  204. package/docs/interfaces/ISeededRandomSourceConstructorParams.md +0 -112
  205. package/docs/interfaces/ISeededRandomSourceConstructorParams.seed.md +0 -9
  206. package/docs/interfaces/ISeededRandomSourceConstructorParams.state.md +0 -9
  207. package/docs/interfaces/ISeededRandomSourceConstructorParams.step.md +0 -9
  208. package/docs/interfaces/ISeededRandomSourceCreateParams.md +0 -61
  209. package/docs/interfaces/ISeededRandomSourceCreateParams.seed.md +0 -9
  210. package/docs/interfaces/ISeededRandomSourceCreateParams.step.md +0 -9
  211. package/docs/interfaces/ISequentialPickParams.candidates.md +0 -9
  212. package/docs/interfaces/ISequentialPickParams.count.md +0 -9
  213. package/docs/interfaces/ISequentialPickParams.how.md +0 -9
  214. package/docs/interfaces/ISequentialPickParams.md +0 -79
  215. package/docs/type-aliases/RandomStepFunction.md +0 -11
  216. package/docs/type-aliases/SequencePickParams.md +0 -11
  217. package/docs/variables/Adjectives.md +0 -7
  218. package/docs/variables/Animals.md +0 -7
  219. package/docs/variables/Cities.md +0 -7
  220. package/docs/variables/Colors.md +0 -7
  221. package/docs/variables/Countries.md +0 -7
  222. package/docs/variables/Domains.md +0 -7
  223. package/docs/variables/FamilyNames.md +0 -9
  224. package/docs/variables/FirstNames.md +0 -9
  225. package/docs/variables/FirstNamesFemale.md +0 -9
  226. package/docs/variables/FirstNamesMale.md +0 -9
  227. package/docs/variables/Gerunds.md +0 -7
  228. package/docs/variables/all.md +0 -9
  229. package/docs/variables/alphanumeric.md +0 -9
  230. package/docs/variables/base64.md +0 -9
  231. package/docs/variables/base64Url.md +0 -9
  232. package/docs/variables/base64UrlNoPadding.md +0 -9
  233. package/docs/variables/digits.md +0 -9
  234. package/docs/variables/hex.md +0 -9
  235. package/docs/variables/hexDigits.md +0 -9
  236. package/docs/variables/hexDigitsUpper.md +0 -9
  237. package/docs/variables/jobs.md +0 -7
  238. package/docs/variables/letters.md +0 -9
  239. package/docs/variables/lowerCase.md +0 -9
  240. package/docs/variables/printable.md +0 -9
  241. package/docs/variables/symbols.md +0 -9
  242. package/docs/variables/upperCase.md +0 -9
  243. package/docs/variables/whitespace.md +0 -9
  244. package/lib/test/unit/generators.test.d.ts +0 -2
  245. package/lib/test/unit/generators.test.d.ts.map +0 -1
  246. package/lib/test/unit/generators.test.js +0 -598
  247. package/lib/test/unit/generators.test.js.map +0 -1
  248. package/lib/test/unit/randomSource.test.d.ts +0 -2
  249. package/lib/test/unit/randomSource.test.d.ts.map +0 -1
  250. package/lib/test/unit/randomSource.test.js +0 -454
  251. package/lib/test/unit/randomSource.test.js.map +0 -1
  252. package/rush-logs/ts-random.build.cache.log +0 -3
  253. package/rush-logs/ts-random.build.log +0 -6
  254. package/src/generator/generators.ts +0 -273
  255. package/src/generator/index.ts +0 -22
  256. package/src/generator/randomSource.ts +0 -224
  257. package/src/generator-data/charClasses.ts +0 -95
  258. package/src/generator-data/index.ts +0 -22
  259. package/src/generator-data/words/adjectives.ts +0 -247
  260. package/src/generator-data/words/animals.ts +0 -75
  261. package/src/generator-data/words/cities.ts +0 -229
  262. package/src/generator-data/words/colors.ts +0 -56
  263. package/src/generator-data/words/countries.ts +0 -217
  264. package/src/generator-data/words/domains.ts +0 -47
  265. package/src/generator-data/words/gerunds.ts +0 -126
  266. package/src/generator-data/words/index.ts +0 -29
  267. package/src/generator-data/words/jobs.ts +0 -175
  268. package/src/generator-data/words/names.ts +0 -717
  269. package/src/index.ts +0 -7
  270. package/src/test/unit/generators.test.ts +0 -697
  271. package/src/test/unit/randomSource.test.ts +0 -526
  272. package/temp/build/typescript/ts_8nwakTlr.json +0 -1
  273. package/tsconfig.json +0 -7
@@ -1,25 +0,0 @@
1
- [Home](../README.md) > [PseudoRandomGenerator](./PseudoRandomGenerator.md) > nextString
2
-
3
- ## PseudoRandomGenerator.nextString() method
4
-
5
- Generates a random string of the specified length using the given characters.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- nextString(length: number, chars: string): string;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>length</td><td>number</td><td>The length of the string to generate.</td></tr>
18
- <tr><td>chars</td><td>string</td><td>The characters to use for the string (default is alphanumeric).</td></tr>
19
- </tbody></table>
20
-
21
- **Returns:**
22
-
23
- string
24
-
25
- A random string of the specified length.
@@ -1,24 +0,0 @@
1
- [Home](../README.md) > [PseudoRandomGenerator](./PseudoRandomGenerator.md) > pickNext
2
-
3
- ## PseudoRandomGenerator.pickNext() method
4
-
5
- Generates a random item from the given array.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- pickNext(items?: readonly T[]): T | undefined;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>items</td><td>readonly T[]</td><td>The array to select from.</td></tr>
18
- </tbody></table>
19
-
20
- **Returns:**
21
-
22
- T | undefined
23
-
24
- A random item from the array or undefined if the array is empty.
@@ -1,25 +0,0 @@
1
- [Home](../README.md) > [PseudoRandomGenerator](./PseudoRandomGenerator.md) > pickRandom
2
-
3
- ## PseudoRandomGenerator.pickRandom() method
4
-
5
- Generates a sequence of values by randomly selecting from the supplied
6
- dictionaries in random order.
7
-
8
- **Signature:**
9
-
10
- ```typescript
11
- pickRandom(params: IRandomSequencePickParams<T>): readonly T[];
12
- ```
13
-
14
- **Parameters:**
15
-
16
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
17
- <tbody>
18
- <tr><td>params</td><td>IRandomSequencePickParams&lt;T&gt;</td><td>The parameters for generating the sequence.</td></tr>
19
- </tbody></table>
20
-
21
- **Returns:**
22
-
23
- readonly T[]
24
-
25
- A sequence of values.
@@ -1,24 +0,0 @@
1
- [Home](../README.md) > [PseudoRandomGenerator](./PseudoRandomGenerator.md) > pickSequence
2
-
3
- ## PseudoRandomGenerator.pickSequence() method
4
-
5
- Generates a sequence of values by randomly selecting from the given candidates.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- pickSequence(params: SequencePickParams<T>): readonly T[];
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>params</td><td>SequencePickParams&lt;T&gt;</td><td>The parameters for generating the sequence.</td></tr>
18
- </tbody></table>
19
-
20
- **Returns:**
21
-
22
- readonly T[]
23
-
24
- A sequence of values.
@@ -1,25 +0,0 @@
1
- [Home](../README.md) > [PseudoRandomGenerator](./PseudoRandomGenerator.md) > pickSequential
2
-
3
- ## PseudoRandomGenerator.pickSequential() method
4
-
5
- Generates a sequence of values by randomly selecting from the given candidate
6
- dictionaries in order.
7
-
8
- **Signature:**
9
-
10
- ```typescript
11
- pickSequential(params: ISequentialPickParams<T>): readonly T[];
12
- ```
13
-
14
- **Parameters:**
15
-
16
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
17
- <tbody>
18
- <tr><td>params</td><td>ISequentialPickParams&lt;T&gt;</td><td>The parameters for generating the sequence.</td></tr>
19
- </tbody></table>
20
-
21
- **Returns:**
22
-
23
- readonly T[]
24
-
25
- A sequence of values.
@@ -1,11 +0,0 @@
1
- [Home](../README.md) > [PseudoRandomGenerator](./PseudoRandomGenerator.md) > rng
2
-
3
- ## PseudoRandomGenerator.rng property
4
-
5
- The underlying random number generator.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- readonly rng: SeededRandomSource;
11
- ```
@@ -1,24 +0,0 @@
1
- [Home](../README.md) > [PseudoRandomGenerator](./PseudoRandomGenerator.md) > setGlobalRng
2
-
3
- ## PseudoRandomGenerator.setGlobalRng() method
4
-
5
- Sets this generator as the global random number generator.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- static setGlobalRng(rng?: PseudoRandomGenerator): PseudoRandomGenerator | undefined;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>rng</td><td>PseudoRandomGenerator</td><td></td></tr>
18
- </tbody></table>
19
-
20
- **Returns:**
21
-
22
- [PseudoRandomGenerator](PseudoRandomGenerator.md) | undefined
23
-
24
- A result containing this generator or an error.
@@ -1,17 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > clone
2
-
3
- ## SeededRandomSource.clone() method
4
-
5
- Creates a clone of this random source.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- clone(): SeededRandomSource;
11
- ```
12
-
13
- **Returns:**
14
-
15
- [SeededRandomSource](SeededRandomSource.md)
16
-
17
- A new seeded random source with the same state.
@@ -1,11 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > counter
2
-
3
- ## SeededRandomSource.counter property
4
-
5
- Gets the current counter value.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- readonly counter: number;
11
- ```
@@ -1,24 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > create
2
-
3
- ## SeededRandomSource.create() method
4
-
5
- Creates a new seeded random source from an optional seed.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- static create(seed?: string | number): Result<SeededRandomSource>;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>seed</td><td>string | number</td><td>The optional seed value.</td></tr>
18
- </tbody></table>
19
-
20
- **Returns:**
21
-
22
- Result&lt;[SeededRandomSource](SeededRandomSource.md)&gt;
23
-
24
- A new seeded random source.
@@ -1,24 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > createChild
2
-
3
- ## SeededRandomSource.createChild() method
4
-
5
- Creates a child random source with a label.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- createChild(label: string): SeededRandomSource;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>label</td><td>string</td><td>The label for the child.</td></tr>
18
- </tbody></table>
19
-
20
- **Returns:**
21
-
22
- [SeededRandomSource](SeededRandomSource.md)
23
-
24
- A new seeded random source with a hashed state and label.
@@ -1,24 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > hashSeed
2
-
3
- ## SeededRandomSource.hashSeed() method
4
-
5
- Hashes a seed value.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- static hashSeed(seed: string | number): ISeedPair;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>seed</td><td>string | number</td><td>The seed value.</td></tr>
18
- </tbody></table>
19
-
20
- **Returns:**
21
-
22
- [ISeedPair](../interfaces/ISeedPair.md)
23
-
24
- A hashed seed value.
@@ -1,25 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > hashStateAndLabel
2
-
3
- ## SeededRandomSource.hashStateAndLabel() method
4
-
5
- Hashes a state and label.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- static hashStateAndLabel(state: number, label: string): ISeedPair;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>state</td><td>number</td><td>The state value.</td></tr>
18
- <tr><td>label</td><td>string</td><td>The label value.</td></tr>
19
- </tbody></table>
20
-
21
- **Returns:**
22
-
23
- [ISeedPair](../interfaces/ISeedPair.md)
24
-
25
- A hashed state and label value.
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > lineage
2
-
3
- ## SeededRandomSource.lineage property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly lineage: readonly string[];
9
- ```
@@ -1,187 +0,0 @@
1
- [Home](../README.md) > SeededRandomSource
2
-
3
- # Class: SeededRandomSource
4
-
5
- Seeded random number generator that can be cloned and used for deterministic generation.
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](./SeededRandomSource.seed.md)
30
-
31
- </td><td>
32
-
33
- `readonly`
34
-
35
- </td><td>
36
-
37
- string
38
-
39
- </td><td>
40
-
41
-
42
-
43
- </td></tr>
44
- <tr><td>
45
-
46
- [lineage](./SeededRandomSource.lineage.md)
47
-
48
- </td><td>
49
-
50
- `readonly`
51
-
52
- </td><td>
53
-
54
- readonly string[]
55
-
56
- </td><td>
57
-
58
-
59
-
60
- </td></tr>
61
- <tr><td>
62
-
63
- [counter](./SeededRandomSource.counter.md)
64
-
65
- </td><td>
66
-
67
- `readonly`
68
-
69
- </td><td>
70
-
71
- number
72
-
73
- </td><td>
74
-
75
- Gets the current counter value.
76
-
77
- </td></tr>
78
- </tbody></table>
79
-
80
- ## Methods
81
-
82
- <table><thead><tr><th>
83
-
84
- Method
85
-
86
- </th><th>
87
-
88
- Modifiers
89
-
90
- </th><th>
91
-
92
- Description
93
-
94
- </th></tr></thead>
95
- <tbody>
96
- <tr><td>
97
-
98
- [create(seed)](./SeededRandomSource.create.md)
99
-
100
- </td><td>
101
-
102
- `static`
103
-
104
- </td><td>
105
-
106
- Creates a new seeded random source from an optional seed.
107
-
108
- </td></tr>
109
- <tr><td>
110
-
111
- [mulberryStep(currentState)](./SeededRandomSource.mulberryStep.md)
112
-
113
- </td><td>
114
-
115
- `static`
116
-
117
- </td><td>
118
-
119
- Steps a mulberry32 random number generator state and returns the next value.
120
-
121
- </td></tr>
122
- <tr><td>
123
-
124
- [hashSeed(seed)](./SeededRandomSource.hashSeed.md)
125
-
126
- </td><td>
127
-
128
- `static`
129
-
130
- </td><td>
131
-
132
- Hashes a seed value.
133
-
134
- </td></tr>
135
- <tr><td>
136
-
137
- [hashStateAndLabel(state, label)](./SeededRandomSource.hashStateAndLabel.md)
138
-
139
- </td><td>
140
-
141
- `static`
142
-
143
- </td><td>
144
-
145
- Hashes a state and label.
146
-
147
- </td></tr>
148
- <tr><td>
149
-
150
- [next()](./SeededRandomSource.next.md)
151
-
152
- </td><td>
153
-
154
-
155
-
156
- </td><td>
157
-
158
- Generates the next random number.
159
-
160
- </td></tr>
161
- <tr><td>
162
-
163
- [clone()](./SeededRandomSource.clone.md)
164
-
165
- </td><td>
166
-
167
-
168
-
169
- </td><td>
170
-
171
- Creates a clone of this random source.
172
-
173
- </td></tr>
174
- <tr><td>
175
-
176
- [createChild(label)](./SeededRandomSource.createChild.md)
177
-
178
- </td><td>
179
-
180
-
181
-
182
- </td><td>
183
-
184
- Creates a child random source with a label.
185
-
186
- </td></tr>
187
- </tbody></table>
@@ -1,24 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > mulberryStep
2
-
3
- ## SeededRandomSource.mulberryStep() method
4
-
5
- Steps a mulberry32 random number generator state and returns the next value.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- static mulberryStep(currentState: number): INextResult;
11
- ```
12
-
13
- **Parameters:**
14
-
15
- <table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
16
- <tbody>
17
- <tr><td>currentState</td><td>number</td><td>The current state of the generator.</td></tr>
18
- </tbody></table>
19
-
20
- **Returns:**
21
-
22
- [INextResult](../interfaces/INextResult.md)
23
-
24
- The next random number and the next state.
@@ -1,17 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > next
2
-
3
- ## SeededRandomSource.next() method
4
-
5
- Generates the next random number.
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- next(): number;
11
- ```
12
-
13
- **Returns:**
14
-
15
- number
16
-
17
- A random number between 0 and 1.
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [SeededRandomSource](./SeededRandomSource.md) > seed
2
-
3
- ## SeededRandomSource.seed property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly seed: string;
9
- ```
@@ -1,61 +0,0 @@
1
- [Home](../README.md) > INextResult
2
-
3
- # Interface: INextResult
4
-
5
- Result of an internal next() operation.
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
- [value](./INextResult.value.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
- [nextState](./INextResult.nextState.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>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [INextResult](./INextResult.md) > nextState
2
-
3
- ## INextResult.nextState property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- nextState: number;
9
- ```
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [INextResult](./INextResult.md) > value
2
-
3
- ## INextResult.value property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- value: number;
9
- ```
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IPseudoRandomGeneratorCreateParams](./IPseudoRandomGeneratorCreateParams.md) > global
2
-
3
- ## IPseudoRandomGeneratorCreateParams.global property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- global: boolean;
9
- ```