@trioforge/random 0.1.0 → 0.1.2

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 (3) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -0
  3. package/package.json +51 -51
package/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # @trioforge/random
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6964b61`](https://github.com/Trio-Forge-Studio/random/commit/6964b61521e39c60f326defb3be497cac2a6e6a4) Thanks [@Hezaerd](https://github.com/Hezaerd)! - The source moved to its own repository, [Trio-Forge-Studio/random](https://github.com/Trio-Forge-Studio/random), so the package's repository and issue links point there. Its homepage is now its docs page at <https://website.trio-forge.workers.dev/docs/random/>. The code is the same as the previous version.
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#6](https://github.com/Trio-Forge-Studio/packages/pull/6) [`dac820b`](https://github.com/Trio-Forge-Studio/packages/commit/dac820b44abb72c663f694c6125de44e1a1a8fcd) Thanks [@Hezaerd](https://github.com/Hezaerd)! - The source moved to [Trio-Forge-Studio/packages](https://github.com/Trio-Forge-Studio/packages), so the package's repository and issue links point there. The package now ships its `CHANGELOG.md`. The code is the same as the previous version.
14
+
15
+ ## 0.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - First release. `Rng` is a seeded xoshiro128\*\* generator in plain Luau, so every client and server draws the same sequence from the same seed. It draws integers, floats, chances and normal values, and it picks by weight, shuffles and samples. A state can be saved, restored, cloned and forked. ([Trio-Forge-Studio/random#1](https://github.com/Trio-Forge-Studio/random/pull/1))
package/README.md CHANGED
@@ -4,6 +4,8 @@ Seeded random numbers for roblox-ts. Every client and every server draws the sam
4
4
 
5
5
  Roblox's `Random` doesn't promise that. Its algorithm and `Random:Shuffle` belong to the engine and can change between versions, which matters as soon as a server and its clients must agree on a draw. This package runs [xoshiro128\*\*](https://prng.di.unimi.it/) in plain Luau instead, and checks it against the algorithm's reference output.
6
6
 
7
+ Read the documentation at <https://website.trio-forge.workers.dev/docs/random/>.
8
+
7
9
  ## Install
8
10
 
9
11
  ```sh
package/package.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
- "name": "@trioforge/random",
3
- "version": "0.1.0",
4
- "description": "Seeded, deterministic random numbers for roblox-ts that every client and server draws the same",
5
- "keywords": [
6
- "roblox",
7
- "roblox-ts",
8
- "random",
9
- "rng",
10
- "prng",
11
- "seed",
12
- "xoshiro"
13
- ],
14
- "bugs": "https://github.com/Trio-Forge-Studio/random/issues",
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/Trio-Forge-Studio/random.git"
18
- },
19
- "license": "MIT",
20
- "type": "module",
21
- "main": "out/init.luau",
22
- "types": "out/index.d.ts",
23
- "files": [
24
- "out",
25
- "!**/*.tsbuildinfo",
26
- "README.md",
27
- "LICENSE"
28
- ],
29
- "packageManager": "pnpm@12.15.0",
30
- "publishConfig": {
31
- "access": "public"
32
- },
33
- "scripts": {
34
- "build": "rbxtsc --type package",
35
- "test": "vitest run",
36
- "lint": "oxlint",
37
- "fmt": "oxfmt src test vitest.config.ts",
38
- "typecheck": "tsc -p test",
39
- "check": "oxfmt --check src test vitest.config.ts && oxlint && tsc -p test && vitest run",
40
- "prepack": "rbxtsc --type package"
41
- },
42
- "devDependencies": {
43
- "@rbxts/compiler-types": "3.0.0-types.0",
44
- "@rbxts/types": "^1.0.958",
45
- "@types/node": "^24.19.2",
46
- "oxfmt": "^0.74.0",
47
- "oxlint": "^1.89.0",
48
- "roblox-ts": "^3.0.0",
49
- "typescript": "5.5.3",
50
- "vitest": "^5.0.5"
51
- }
52
- }
2
+ "name": "@trioforge/random",
3
+ "version": "0.1.2",
4
+ "description": "Seeded, deterministic random numbers for roblox-ts that every client and server draws the same",
5
+ "keywords": [
6
+ "roblox",
7
+ "roblox-ts",
8
+ "random",
9
+ "rng",
10
+ "prng",
11
+ "seed",
12
+ "xoshiro"
13
+ ],
14
+ "homepage": "https://website.trio-forge.workers.dev/docs/random/",
15
+ "bugs": "https://github.com/Trio-Forge-Studio/random/issues",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Trio-Forge-Studio/random.git"
19
+ },
20
+ "license": "MIT",
21
+ "type": "module",
22
+ "main": "out/init.luau",
23
+ "types": "out/index.d.ts",
24
+ "files": [
25
+ "out",
26
+ "!**/*.tsbuildinfo",
27
+ "README.md",
28
+ "CHANGELOG.md",
29
+ "LICENSE"
30
+ ],
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "devDependencies": {
35
+ "@changesets/changelog-github": "1.0.1",
36
+ "@changesets/cli": "3.0.3",
37
+ "@rbxts/compiler-types": "3.0.0-types.0",
38
+ "@rbxts/types": "1.0.959",
39
+ "@types/node": "24.19.2",
40
+ "roblox-ts": "3.0.0",
41
+ "typescript": "5.5.3",
42
+ "vite-plus": "1.3.0"
43
+ },
44
+ "scripts": {
45
+ "build": "rbxtsc --type package",
46
+ "test": "vp test",
47
+ "check": "vp check && tsc -p test && vp test",
48
+ "examples": "node tooling/check-examples.mjs --run",
49
+ "fmt": "vp fmt",
50
+ "changeset": "changeset"
51
+ }
52
+ }