@quenty/randomutils 6.16.0 → 6.17.1

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/CHANGELOG.md CHANGED
@@ -3,360 +3,202 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [6.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.15.0...@quenty/randomutils@6.16.0) (2026-04-23)
6
+ ## [6.17.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.17.0...@quenty/randomutils@6.17.1) (2026-05-30)
7
7
 
8
8
  **Note:** Version bump only for package @quenty/randomutils
9
9
 
10
+ # [6.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.16.0...@quenty/randomutils@6.17.0) (2026-05-29)
10
11
 
12
+ **Note:** Version bump only for package @quenty/randomutils
11
13
 
14
+ # [6.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.15.0...@quenty/randomutils@6.16.0) (2026-04-23)
12
15
 
16
+ **Note:** Version bump only for package @quenty/randomutils
13
17
 
14
18
  # [6.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.14.0...@quenty/randomutils@6.15.0) (2026-02-20)
15
19
 
16
-
17
20
  ### Features
18
21
 
19
- * **cli:** add CI annotation support to game and plugin templates ([#666](https://github.com/Quenty/NevermoreEngine/issues/666)) ([098971b](https://github.com/Quenty/NevermoreEngine/commit/098971bb04dfe40be09f475330b69a48b38c54c5))
20
-
21
-
22
-
23
-
22
+ - **cli:** add CI annotation support to game and plugin templates ([#666](https://github.com/Quenty/NevermoreEngine/issues/666)) ([098971b](https://github.com/Quenty/NevermoreEngine/commit/098971bb04dfe40be09f475330b69a48b38c54c5))
24
23
 
25
24
  # [6.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.13.0...@quenty/randomutils@6.14.0) (2026-02-19)
26
25
 
27
-
28
26
  ### Features
29
27
 
30
- * **cli:** add aggregated batch test execution ([58f20e4](https://github.com/Quenty/NevermoreEngine/commit/58f20e437540c597ea445f47d47076c08ea9ca21))
31
-
32
-
33
-
34
-
28
+ - **cli:** add aggregated batch test execution ([58f20e4](https://github.com/Quenty/NevermoreEngine/commit/58f20e437540c597ea445f47d47076c08ea9ca21))
35
29
 
36
30
  # [6.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.12.2...@quenty/randomutils@6.13.0) (2026-02-17)
37
31
 
38
-
39
32
  ### Features
40
33
 
41
- * Add CI/CD batch unit testing ([016a366](https://github.com/Quenty/NevermoreEngine/commit/016a3663509c8fffa518b07cfc49ebecba2a1fa6))
42
-
43
-
44
-
45
-
34
+ - Add CI/CD batch unit testing ([016a366](https://github.com/Quenty/NevermoreEngine/commit/016a3663509c8fffa518b07cfc49ebecba2a1fa6))
46
35
 
47
36
  ## [6.12.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.12.1...@quenty/randomutils@6.12.2) (2026-01-12)
48
37
 
49
-
50
38
  ### Bug Fixes
51
39
 
52
- * Fix dependency installation process for pnpm ([9651b09](https://github.com/Quenty/NevermoreEngine/commit/9651b09af34f252ef3f9c7c539793cc878dd8cba))
53
-
54
-
55
-
56
-
40
+ - Fix dependency installation process for pnpm ([9651b09](https://github.com/Quenty/NevermoreEngine/commit/9651b09af34f252ef3f9c7c539793cc878dd8cba))
57
41
 
58
42
  ## [6.12.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.12.0...@quenty/randomutils@6.12.1) (2026-01-10)
59
43
 
60
44
  **Note:** Version bump only for package @quenty/randomutils
61
45
 
62
-
63
-
64
-
65
-
66
46
  # [6.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.11.1...@quenty/randomutils@6.12.0) (2026-01-04)
67
47
 
68
48
  **Note:** Version bump only for package @quenty/randomutils
69
49
 
70
-
71
-
72
-
73
-
74
50
  ## [6.11.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.11.0...@quenty/randomutils@6.11.1) (2026-01-03)
75
51
 
76
52
  **Note:** Version bump only for package @quenty/randomutils
77
53
 
78
-
79
-
80
-
81
-
82
54
  # [6.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.10.3...@quenty/randomutils@6.11.0) (2025-05-10)
83
55
 
84
56
  **Note:** Version bump only for package @quenty/randomutils
85
57
 
86
-
87
-
88
-
89
-
90
58
  ## [6.10.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.10.2...@quenty/randomutils@6.10.3) (2025-04-10)
91
59
 
92
60
  **Note:** Version bump only for package @quenty/randomutils
93
61
 
94
-
95
-
96
-
97
-
98
62
  ## [6.10.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.10.0...@quenty/randomutils@6.10.2) (2025-04-07)
99
63
 
100
-
101
64
  ### Bug Fixes
102
65
 
103
- * Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
104
- * Bump package versions for republishing ([ba47c62](https://github.com/Quenty/NevermoreEngine/commit/ba47c62e32170bf74377b0c658c60b84306dc294))
105
-
106
-
107
-
108
-
66
+ - Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
67
+ - Bump package versions for republishing ([ba47c62](https://github.com/Quenty/NevermoreEngine/commit/ba47c62e32170bf74377b0c658c60b84306dc294))
109
68
 
110
69
  ## [6.10.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.10.0...@quenty/randomutils@6.10.1) (2025-04-07)
111
70
 
112
-
113
71
  ### Bug Fixes
114
72
 
115
- * Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
116
-
117
-
118
-
119
-
73
+ - Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
120
74
 
121
75
  # [6.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.9.1...@quenty/randomutils@6.10.0) (2025-04-02)
122
76
 
123
-
124
77
  ### Bug Fixes
125
78
 
126
- * Fix existing tests ([655787c](https://github.com/Quenty/NevermoreEngine/commit/655787ced1139136e12f81800e229aa076731561))
127
-
128
-
129
-
130
-
79
+ - Fix existing tests ([655787c](https://github.com/Quenty/NevermoreEngine/commit/655787ced1139136e12f81800e229aa076731561))
131
80
 
132
81
  ## [6.9.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.9.0...@quenty/randomutils@6.9.1) (2025-03-21)
133
82
 
134
83
  **Note:** Version bump only for package @quenty/randomutils
135
84
 
136
-
137
-
138
-
139
-
140
85
  # [6.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.8.0...@quenty/randomutils@6.9.0) (2025-02-18)
141
86
 
142
87
  **Note:** Version bump only for package @quenty/randomutils
143
88
 
144
-
145
-
146
-
147
-
148
89
  # [6.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.7.1...@quenty/randomutils@6.8.0) (2024-11-13)
149
90
 
150
91
  **Note:** Version bump only for package @quenty/randomutils
151
92
 
152
-
153
-
154
-
155
-
156
93
  ## [6.7.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.7.0...@quenty/randomutils@6.7.1) (2024-11-04)
157
94
 
158
95
  **Note:** Version bump only for package @quenty/randomutils
159
96
 
160
-
161
-
162
-
163
-
164
97
  # [6.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.6.0...@quenty/randomutils@6.7.0) (2024-10-06)
165
98
 
166
99
  **Note:** Version bump only for package @quenty/randomutils
167
100
 
168
-
169
-
170
-
171
-
172
101
  # [6.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.5.0...@quenty/randomutils@6.6.0) (2024-10-04)
173
102
 
174
103
  **Note:** Version bump only for package @quenty/randomutils
175
104
 
176
-
177
-
178
-
179
-
180
105
  # [6.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.4.0...@quenty/randomutils@6.5.0) (2024-09-25)
181
106
 
182
107
  **Note:** Version bump only for package @quenty/randomutils
183
108
 
184
-
185
-
186
-
187
-
188
109
  # [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.3.0...@quenty/randomutils@6.4.0) (2024-09-12)
189
110
 
190
111
  **Note:** Version bump only for package @quenty/randomutils
191
112
 
192
-
193
-
194
-
195
-
196
113
  # [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.2.1...@quenty/randomutils@6.3.0) (2024-05-09)
197
114
 
198
-
199
115
  ### Bug Fixes
200
116
 
201
- * Fix .package-lock.json replicating in packages ([75d0efe](https://github.com/Quenty/NevermoreEngine/commit/75d0efeef239f221d93352af71a5b3e930ec23c5))
202
-
203
-
204
-
205
-
117
+ - Fix .package-lock.json replicating in packages ([75d0efe](https://github.com/Quenty/NevermoreEngine/commit/75d0efeef239f221d93352af71a5b3e930ec23c5))
206
118
 
207
119
  ## [6.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.2.0...@quenty/randomutils@6.2.1) (2024-04-28)
208
120
 
209
-
210
121
  ### Bug Fixes
211
122
 
212
- * RandomUtils.weightedChoice when chances array starts with 0(s) ([cd4a616](https://github.com/Quenty/NevermoreEngine/commit/cd4a61663ece9f731f1c6184ae0107124f1120dd))
213
-
214
-
215
-
216
-
123
+ - RandomUtils.weightedChoice when chances array starts with 0(s) ([cd4a616](https://github.com/Quenty/NevermoreEngine/commit/cd4a61663ece9f731f1c6184ae0107124f1120dd))
217
124
 
218
125
  # [6.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.1.0...@quenty/randomutils@6.2.0) (2024-04-27)
219
126
 
220
127
  **Note:** Version bump only for package @quenty/randomutils
221
128
 
222
-
223
-
224
-
225
-
226
129
  # [6.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@6.0.0...@quenty/randomutils@6.1.0) (2024-03-09)
227
130
 
228
131
  **Note:** Version bump only for package @quenty/randomutils
229
132
 
230
-
231
-
232
-
233
-
234
133
  # [6.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@5.0.0...@quenty/randomutils@6.0.0) (2024-02-14)
235
134
 
236
135
  **Note:** Version bump only for package @quenty/randomutils
237
136
 
238
-
239
-
240
-
241
-
242
137
  # [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@4.0.0...@quenty/randomutils@5.0.0) (2024-02-13)
243
138
 
244
139
  **Note:** Version bump only for package @quenty/randomutils
245
140
 
246
-
247
-
248
-
249
-
250
141
  # [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@3.2.0...@quenty/randomutils@4.0.0) (2024-02-13)
251
142
 
252
143
  **Note:** Version bump only for package @quenty/randomutils
253
144
 
254
-
255
-
256
-
257
-
258
145
  # [3.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@3.1.0...@quenty/randomutils@3.2.0) (2024-01-08)
259
146
 
260
147
  **Note:** Version bump only for package @quenty/randomutils
261
148
 
262
-
263
-
264
-
265
-
266
149
  # [3.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@3.0.0...@quenty/randomutils@3.1.0) (2023-12-14)
267
150
 
268
-
269
151
  ### Features
270
152
 
271
- * Cache random choice calculations to be speedy ([c32f301](https://github.com/Quenty/NevermoreEngine/commit/c32f30184d11e1ce04e3e9fa2cbd21861c54a09b))
272
-
273
-
274
-
275
-
153
+ - Cache random choice calculations to be speedy ([c32f301](https://github.com/Quenty/NevermoreEngine/commit/c32f30184d11e1ce04e3e9fa2cbd21861c54a09b))
276
154
 
277
155
  # [3.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@2.3.0...@quenty/randomutils@3.0.0) (2023-10-11)
278
156
 
279
-
280
157
  ### Features
281
158
 
282
- * Add GetProbability ([2267080](https://github.com/Quenty/NevermoreEngine/commit/2267080fc6c1c53153f15cd9f638bddbff2371b7))
283
- * Add WeightedRandomChooser ([b0cdcd1](https://github.com/Quenty/NevermoreEngine/commit/b0cdcd1ab69104535683609469cd806e647ef000))
284
-
285
-
286
-
287
-
159
+ - Add GetProbability ([2267080](https://github.com/Quenty/NevermoreEngine/commit/2267080fc6c1c53153f15cd9f638bddbff2371b7))
160
+ - Add WeightedRandomChooser ([b0cdcd1](https://github.com/Quenty/NevermoreEngine/commit/b0cdcd1ab69104535683609469cd806e647ef000))
288
161
 
289
162
  # [2.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@2.2.0...@quenty/randomutils@2.3.0) (2023-08-23)
290
163
 
291
-
292
164
  ### Bug Fixes
293
165
 
294
- * Use table.clone() ([28f311b](https://github.com/Quenty/NevermoreEngine/commit/28f311b9c2534fa7b2056265db05c1447dc43a8a))
295
-
166
+ - Use table.clone() ([28f311b](https://github.com/Quenty/NevermoreEngine/commit/28f311b9c2534fa7b2056265db05c1447dc43a8a))
296
167
 
297
168
  ### Features
298
169
 
299
- * Add RandomSampler object to RandomUtils ([5ca48d9](https://github.com/Quenty/NevermoreEngine/commit/5ca48d91697ee0b20ec1df8dda91a0e9f9ceb0a3))
300
-
301
-
302
-
303
-
170
+ - Add RandomSampler object to RandomUtils ([5ca48d9](https://github.com/Quenty/NevermoreEngine/commit/5ca48d91697ee0b20ec1df8dda91a0e9f9ceb0a3))
304
171
 
305
172
  # [2.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@2.1.1...@quenty/randomutils@2.2.0) (2022-03-27)
306
173
 
307
174
  **Note:** Version bump only for package @quenty/randomutils
308
175
 
309
-
310
-
311
-
312
-
313
176
  ## [2.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@2.1.0...@quenty/randomutils@2.1.1) (2021-12-30)
314
177
 
315
178
  **Note:** Version bump only for package @quenty/randomutils
316
179
 
317
-
318
-
319
-
320
-
321
180
  # [2.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@2.0.0...@quenty/randomutils@2.1.0) (2021-10-02)
322
181
 
323
-
324
182
  ### Features
325
183
 
326
- * Add RandomUtils.guassuanRandom() and RandomUtils.randomUnitVector3 ([f903846](https://github.com/Quenty/NevermoreEngine/commit/f90384651aedd4a79600b2825b996123441227c9))
327
-
328
-
329
-
330
-
184
+ - Add RandomUtils.guassuanRandom() and RandomUtils.randomUnitVector3 ([f903846](https://github.com/Quenty/NevermoreEngine/commit/f90384651aedd4a79600b2825b996123441227c9))
331
185
 
332
186
  # [2.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/randomutils@1.2.0...@quenty/randomutils@2.0.0) (2021-09-05)
333
187
 
334
-
335
188
  ### Bug Fixes
336
189
 
337
- * Remove peer dependencies. This is because lerna doesn't really support peer dependencies being linked and getting a new version on build, which is unfortunate. ([5f5aeee](https://github.com/Quenty/NevermoreEngine/commit/5f5aeeea8de9975435309e53679f0ef7064f9dd0))
338
-
339
-
340
-
341
-
190
+ - Remove peer dependencies. This is because lerna doesn't really support peer dependencies being linked and getting a new version on build, which is unfortunate. ([5f5aeee](https://github.com/Quenty/NevermoreEngine/commit/5f5aeeea8de9975435309e53679f0ef7064f9dd0))
342
191
 
343
192
  # 1.2.0 (2021-07-31)
344
193
 
345
-
346
194
  ### Bug Fixes
347
195
 
348
- * Add CI and CD ([47513e9](https://github.com/Quenty/NevermoreEngine/commit/47513e9b568162707534af132396dd8756947dd3))
349
- * Adjust CI badge to show automatic build and release state ([5a55d3f](https://github.com/Quenty/NevermoreEngine/commit/5a55d3f19bf8d66a760d67da9b56ed47fab74656))
350
- * Fix selene linting ([45fc074](https://github.com/Quenty/NevermoreEngine/commit/45fc07489ee59127ac6582689f19a0e87c1e5b5a))
351
-
352
-
196
+ - Add CI and CD ([47513e9](https://github.com/Quenty/NevermoreEngine/commit/47513e9b568162707534af132396dd8756947dd3))
197
+ - Adjust CI badge to show automatic build and release state ([5a55d3f](https://github.com/Quenty/NevermoreEngine/commit/5a55d3f19bf8d66a760d67da9b56ed47fab74656))
198
+ - Fix selene linting ([45fc074](https://github.com/Quenty/NevermoreEngine/commit/45fc07489ee59127ac6582689f19a0e87c1e5b5a))
353
199
 
354
200
  ## 1.0.2 (2021-07-25)
355
201
 
356
-
357
-
358
202
  ## 1.0.1 (2021-07-25)
359
203
 
360
-
361
-
362
204
  # 1.0.0 (2021-07-24)
@@ -0,0 +1,10 @@
1
+ {
2
+ "targets": {
3
+ "test": {
4
+ "universeId": 9716264427,
5
+ "placeId": 127308539328267,
6
+ "project": "test/default.project.json",
7
+ "scriptTemplate": "test/scripts/Server/ServerMain.server.lua"
8
+ }
9
+ }
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/randomutils",
3
- "version": "6.16.0",
3
+ "version": "6.17.1",
4
4
  "description": "Quenty's RandomUtils, utility functions for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -37,5 +37,5 @@
37
37
  "@quenty/table": "3.9.2",
38
38
  "@quentystudios/jest-lua": "3.10.0-quenty.2"
39
39
  },
40
- "gitHead": "9413391da8b6f9026762285b601fd1d37d385a54"
40
+ "gitHead": "598b2b62b36bdcbdbbd56f7db10c399831cc6eba"
41
41
  }
@@ -6,7 +6,7 @@
6
6
  :::tip
7
7
  Each method generally takes a random object in as the last argument,
8
8
  which can be used to seed the randomness. This is especially useful for
9
- reproducting state in testing.
9
+ reproducing state in testing.
10
10
  :::
11
11
 
12
12
  @class RandomUtils
@@ -186,7 +186,7 @@ function RandomUtils.gaussianRandom(random: Random?): number
186
186
  end
187
187
 
188
188
  --[=[
189
- @param random? Random? -- Optional random to use
189
+ @param random Random? -- Optional random to use
190
190
  @return Vector3
191
191
  ]=]
192
192
  function RandomUtils.randomUnitVector3(random: Random?): Vector3
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "RandomUtilsTest",
3
+ "globIgnorePaths": [
4
+ "**/.package-lock.json",
5
+ "**/.pnpm",
6
+ "**/.pnpm-workspace-state-v1.json",
7
+ "**/.modules.yaml",
8
+ "**/.ignored",
9
+ "**/.ignored_*"
10
+ ],
11
+ "tree": {
12
+ "$className": "DataModel",
13
+ "ServerScriptService": {
14
+ "$properties": {
15
+ "LoadStringEnabled": true
16
+ },
17
+ "randomutils": {
18
+ "$path": ".."
19
+ },
20
+ "Script": {
21
+ "$path": "scripts/Server"
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,13 @@
1
+ --[[
2
+ @class ServerMain
3
+ ]]
4
+ local ServerScriptService = game:GetService("ServerScriptService")
5
+
6
+ local root = ServerScriptService.randomutils
7
+ local loader = root:FindFirstChild("LoaderUtils", true).Parent
8
+ local require = require(loader).bootstrapGame(root)
9
+
10
+ local NevermoreTestRunnerUtils = require("NevermoreTestRunnerUtils")
11
+ if NevermoreTestRunnerUtils.runTestsIfNeededAsync(root) then
12
+ return
13
+ end