stable-random 0.0.1 → 0.1.0

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/README.md ADDED
@@ -0,0 +1,132 @@
1
+ <center><a href="https://npmjs.com/package/stable-random"><img src="https://shieldcn.dev/npm/v/stable-random.svg?variant=secondary&logo=npm&label=latest+version" alt="Latest version on npm"/></a> <a href="https://github.com/Jaid/stable-random/raw/HEAD/license.txt"><img src="https://shieldcn.dev/github/license/Jaid/stable-random.svg?variant=secondary" alt="License"/></a></center>
2
+
3
+ # stable-random
4
+
5
+ Deterministic random rolls keyed by a seed, a chain of IDs and an index, independent of call order.
6
+
7
+ ## installation
8
+
9
+ <a href="https://bun.sh"><picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/Bun-fbf0df.svg?variant=outline&logo=bun&logoColor=fbf0df&mode=dark"><img src="https://shieldcn.dev/badge/Bun-fbf0df.svg?variant=outline&logo=bun&logoColor=fbf0df&mode=light" alt="Bun"/></picture></a>
10
+
11
+ ```sh
12
+ bun add stable-random
13
+ ```
14
+
15
+ <a href="https://npmjs.com/package/stable-random"><img src="https://shieldcn.dev/badge/npm-stable--random-C23039.svg?variant=secondary&logo=npm" alt="stable-random on npm"/></a>
16
+
17
+ ```sh
18
+ npm install --save stable-random
19
+ ```
20
+
21
+ ## usage
22
+
23
+ A seed can reproduce a whole world even if its rooms load in a different order. Give each feature its own ID: rolling or advancing one child leaves the others untouched.
24
+
25
+ ```typescript
26
+ import StableRandom from 'stable-random'
27
+
28
+ const random = new StableRandom({
29
+ id: 'slop-gallery',
30
+ seed: 123,
31
+ })
32
+
33
+ const vesperRandom = random.makeChild(['vesper', 'orbs'])
34
+ vesperRandom.shuffle(['ghost', 'halloween', 'painting']) // ['painting', 'ghost', 'halloween']
35
+
36
+ random.roll() // a float from 0 up to, but not including, 1
37
+ random.rollBoolean() // true or false
38
+ random.rollInteger(5) // an integer from 0 to 5
39
+ random.rollInteger(1, 10) // an integer from 1 to 10
40
+ random.shuffle(['apple', 'banana', 'cherry'], 2) // 2 entries without replacement, in random order
41
+ random.rollRadius(2) // a float from −2 up to, but not including, 2
42
+ random.rollIntegerRadius(2) // −2, −1, 0, 1 or 2
43
+ random.next() // moves on to the next index, which rolls everything anew
44
+ ```
45
+
46
+ No dependencies, no global state and no `Math.random()`. It is not meant for cryptography.
47
+
48
+ ### Ingredients
49
+
50
+ Every roll is made from the same ingredients:
51
+
52
+ - the `seed`: a number, a string or a `Uint8Array`, or none at all. It is what all rolls of a game, a world or a session share.
53
+ - the chain of IDs: the `id` of the constructor, one or several, followed by those of every `makeChild`. An ID is a number or a string and names what is rolled for.
54
+ - the index, which is 0 until `next()` moves on.
55
+
56
+ In the example above, `vesperRandom` rolls from the seed `123`, the ID chain `['slop-gallery', 'vesper', 'orbs']` and the index `0`.
57
+
58
+ Each ingredient counts on its own, so `['ab', 'c']` and `['a', 'bc']` are different chains, an ID never stands in for a seed, and bytes never equal a string. A number counts as its decimal text, so the ID `7` is the ID `'7'` and the seed `123` is the seed `'123'`, like a seed read from a URL.
59
+
60
+ ### Rolling
61
+
62
+ Without `next()`, a roll returns the same result forever. The methods share their numbers, so `rollBoolean()` is `roll() < 0.5` and `rollItem(items)` is the item at `rollInteger(items.length - 1)`. Whatever needs rolls of its own gets a child or moves on with `next()`.
63
+
64
+ | Method | Returns |
65
+ | --- | --- |
66
+ | `roll(options?)` | a uniform float from 0 up to, but not including, 1, with 53 bits of precision; with `easing`, returns the curve’s output for that same float |
67
+ | `rollBoolean(options?)` | `true` or `false`; `chance` (0–1, default 0.5) says how likely `true` is |
68
+ | `chance(percentage = 50)` | `true` with the given percentage chance; `chance(12.5)` is `rollBoolean({chance: 0.125})` |
69
+ | `bytes({size})` | a fresh `Uint8Array` of `size` bytes; a size of 0 gives an empty array and increasing the size keeps the original prefix |
70
+ | `rollInteger(limit, options?)` | an integer between 0 and `limit`, both included |
71
+ | `rollInteger(from, to, options?)` | an integer between `from` and `to`, both included, in either order |
72
+ | `rollIntegerRadius(radius)` | an integer from −`radius` to `radius`, both included |
73
+ | `rollRadius(radius, options?)` | a uniform float from −`abs(radius)` up to, but not including, `abs(radius)`; with easing, a signed distance shaped by the curve |
74
+ | `vary(base, delta, options?)` | `base + rollRadius(delta, options)`; easing shapes the distance from `base` in both directions |
75
+ | `varyInteger(base, delta, options?)` | an integer within `delta` of `base`, both ends included; easing shapes the distance from `base`, with equal-width bins for the integers |
76
+ | `rollItem(items, options?)` | one of the items, typed as the union of a literal array’s items |
77
+ | `sample(items, amount = items.length, options?)` | independent draws with replacement; even a single entry can fill the whole result |
78
+ | `shuffle(items, amount = items.length, options?)` | entries in random order without replacement; starts a fresh shuffle each time it exhausts the input |
79
+ | `pick(items, amount = 1, options?)` | a random subset in input order; prepends whole copies of the input when `amount` exceeds its length |
80
+ | `slice(items, amount = 1)` | neighboring entries from a uniformly chosen start, without wrapping; prepends whole copies just like `pick` |
81
+
82
+ `easing` takes a function `(t: number) => number`. For example, `cubicIn` favors smaller values: half its results fall below 0.125 because it cubes the uniform roll. `roll` returns the curve’s output directly. `rollInteger` divides the unit interval into equal bins, one per integer in ascending order. Finite outputs at or below 0 select the lowest integer; outputs at or above 1 select the highest. Nonfinite outputs throw a `RangeError`.
83
+
84
+ ```typescript
85
+ const cubicIn = (t: number) => t ** 3
86
+
87
+ random.roll({easing: cubicIn}) // favors smaller values
88
+ random.roll({easing: t => 1 - (1 - t) ** 2}) // favors larger values
89
+ random.rollInteger(1, 8, {easing: cubicIn}) // rolls 1 half the time
90
+ random.rollRadius(8, {easing: cubicIn}) // half the offsets are within 1 of zero
91
+ random.varyInteger(10, 2, {easing: cubicIn}) // rolls 8–12, favoring 10
92
+ ```
93
+
94
+ For `rollRadius`, the curve shapes only the distance from zero: 0 means the center and 1 means the full radius. Finite overshoots are clamped to that range; nonfinite outputs throw a `RangeError`. A second draw at the same index chooses the sign with equal odds, so `cubicOut` favors both outer edges equally.
95
+
96
+ The four collection methods return a new array even when `amount` is 1. An amount of 0 gives an empty array; a positive amount requires a nonempty input. Entries are selected by index: equal values at different positions are separate entries.
97
+
98
+ Without easing, integers are rolled without modulo bias. `rollItem`, `sample`, `shuffle` and `pick` take `weights`, either a number per item or a function `(item, index) => number`. Each draw favors an entry in proportion to its weight among the entries still available. A weight of 0 excludes the entry; `shuffle` and `pick` require enough positive weights to complete a pass or the requested part of one.
99
+
100
+ ```typescript
101
+ const rarity = random.makeChild('rarity').rollItem(['common', 'rare', 'epic'], {weights: [16, 4, 1]})
102
+ const toppings = random.makeChild('toppings').pick(['basil', 'garlic', 'olives', 'onions'], 2)
103
+ random.slice(['a', 'b', 'c'], 5) // ['a', 'b', 'c', 'a', 'b'] or ['a', 'b', 'c', 'b', 'c']
104
+ ```
105
+
106
+ ### Children
107
+
108
+ `makeChild(id)` returns another `StableRandom` of the same seed with the given IDs after its parent’s. Several IDs at once make the same child as one child after the other, so `random.makeChild(['vesper', 'orbs'])` is `random.makeChild('vesper').makeChild('orbs')`.
109
+
110
+ A child starts at index 0, whatever the index of its parent, so it only depends on its IDs and never on when it was made. To give every round, wave or item rolls of its own, make it an ID:
111
+
112
+ ```typescript
113
+ const waveRandom = random.makeChild(['wave', waveNumber])
114
+ ```
115
+
116
+ `ids`, `seed` and `index` tell what an instance rolls from. The ID list is frozen and reading a byte seed returns a fresh copy.
117
+
118
+ ### Stability
119
+
120
+ The same ingredients roll the same results on every machine and in every runtime. A test pins them, as saved seeds rely on them; an update that changes them is a breaking one.
121
+
122
+ The ingredients are hashed to 128 bits with [cyrb128](https://github.com/bryc/code/blob/master/jshash/PRNGs.md), from which [sfc32](https://pracrand.sourceforge.net/RNG_engines.txt) draws the numbers of a roll.
123
+
124
+ ## license
125
+
126
+ [MIT License](https://github.com/Jaid/stable-random/raw/HEAD/license.txt)<br>
127
+ Copyright © 2026, Jaid \<jaid.jsx@gmail.com> (https://github.com/jaid)
128
+
129
+ <!--
130
+ readme generated with tldw v9.9.0 from ./docs/tldw
131
+ github.com/Jaid/tldw
132
+ -->
package/lib.d.ts ADDED
@@ -0,0 +1,83 @@
1
+ type Arrayable<Value> = ReadonlyArray<Value> | Value;
2
+ type BytesOptions = {
3
+ /** the number of bytes to draw */
4
+ size: number;
5
+ };
6
+ /** names what is rolled for; a number counts as its decimal text, so `7` and `'7'` name the same */
7
+ type StableId = number | string;
8
+ /** what all rolls of a game, a world or a session share; a number counts as its decimal text, bytes never equal any text */
9
+ type StableSeed = Uint8Array | number | string;
10
+ type StableRandomOptions = {
11
+ /** the first IDs of the chain, one or several */
12
+ id?: Arrayable<StableId>;
13
+ seed?: StableSeed;
14
+ };
15
+ type RollBooleanOptions = {
16
+ /** how likely `true` is, from 0 for never to 1 for always, by default 0.5 */
17
+ chance?: number;
18
+ };
19
+ type RollItemOptions<Item> = {
20
+ /** how likely each item is compared with the others, by default all the same: a number per item in the order of the items, or a function that tells it; an item of weight 0 is never rolled */
21
+ weights?: ((item: Item, index: number) => number) | ReadonlyArray<number>;
22
+ };
23
+ type RollOptions = {
24
+ /** reshapes the uniform roll in [0, 1); for a radius, shapes the distance from zero. */
25
+ easing?: (t: number) => number;
26
+ };
27
+ /**
28
+ * Random rolls that are decided in advance: every roll only depends on the seed, the chain of IDs and the index, never on when, how often or in which order something rolls.
29
+ * The same roll returns the same result forever, until {@link next} moves on. What belongs to one thing gets a child of its own through {@link makeChild}, which rolls independently of every other chain.
30
+ */
31
+ export default class StableRandom {
32
+ private readonly chain;
33
+ private readonly hash;
34
+ private position;
35
+ private readonly seedValue;
36
+ constructor({ id, seed }?: StableRandomOptions);
37
+ /** The frozen chain of IDs, including those of every parent. */
38
+ get ids(): readonly StableId[];
39
+ /** how often {@link next} moved on, 0 at first */
40
+ get index(): number;
41
+ /** The original seed. A byte seed is returned by value so a caller cannot change future children. */
42
+ get seed(): string | number | Uint8Array<ArrayBuffer> | undefined;
43
+ /** A fresh array of `size` bytes. A larger draw continues the same byte sequence. */
44
+ bytes({ size }: BytesOptions): Uint8Array<ArrayBuffer>;
45
+ /** `true` with the given percentage chance, from 0 for never to 100 for always. */
46
+ chance(percentage?: number): boolean;
47
+ /**
48
+ * Another chain of the same seed with `id` after the IDs of this one, which rolls independently of this one and of every other chain. Several IDs at once make the same child as one child after the other.
49
+ * It starts at index 0, whatever the index of this one, so a child only depends on its IDs, never on when it was made.
50
+ */
51
+ makeChild(id: Arrayable<StableId>): StableRandom;
52
+ /** Moves on to the next index, which rolls everything anew. Returns itself. */
53
+ next(): this;
54
+ /** A random subset in input order. Whole copies of the input precede any remaining picks. */
55
+ pick<const Item>(items: ReadonlyArray<Item>, amount?: number, options?: RollItemOptions<Item>): Item[];
56
+ /** A uniform float from 0 up to, but not including, 1, or the result of applying `easing` to that float. */
57
+ roll(options?: RollOptions): number;
58
+ /** `true` or `false`, both as likely unless `chance` says otherwise. */
59
+ rollBoolean(options?: RollBooleanOptions): boolean;
60
+ /** An integer from 0 to `limit`, both included; a negative limit rolls from it up to 0. */
61
+ rollInteger(limit: number, options?: RollOptions): number;
62
+ /** An integer between `from` and `to`, both included, in either order. */
63
+ rollInteger(from: number, to: number, options?: RollOptions): number;
64
+ /** An integer from −`radius` to `radius`, both included. */
65
+ rollIntegerRadius(radius: number): number;
66
+ /** One of the items, each as likely as the others unless `weights` say otherwise. */
67
+ rollItem<const Item>(items: ReadonlyArray<Item>, options?: RollItemOptions<Item>): Item;
68
+ /** A signed offset within `radius`. With easing, rolls the distance from zero and the direction independently. */
69
+ rollRadius(radius: number, options?: RollOptions): number;
70
+ /** Independent draws with replacement, in draw order. */
71
+ sample<const Item>(items: ReadonlyArray<Item>, amount?: number, options?: RollItemOptions<Item>): Item[];
72
+ /** Draws in random order without replacement, starting a fresh shuffle whenever the input runs out. */
73
+ shuffle<const Item>(items: ReadonlyArray<Item>, amount?: number, options?: RollItemOptions<Item>): Item[];
74
+ /** A contiguous slice with a uniformly drawn start. Whole copies of the input precede any remaining slice. */
75
+ slice<const Item>(items: ReadonlyArray<Item>, amount?: number): Item[];
76
+ /** Adds a float rolled within `delta` of zero to `base`. */
77
+ vary(base: number, delta: number, options?: RollOptions): number;
78
+ /** An integer within `delta` of `base`, both ends included. Easing shapes the distance from `base`. */
79
+ varyInteger(base: number, delta: number, options?: RollOptions): number;
80
+ /** Every roll starts its own stream at the current index. */
81
+ private makeStream;
82
+ }
83
+ export type { Arrayable, BytesOptions, RollBooleanOptions, RollItemOptions, RollOptions, StableId, StableRandomOptions, StableSeed };
package/lib.js ADDED
@@ -0,0 +1 @@
1
+ var e=class e{h1=0x6a09e667;h2=0xbb67ae85;h3=0x3c6ef372;h4=0xa54ff53a;absorb(e){if(e===void 0)return this.mix(0),this;if(e instanceof Uint8Array){this.mix(2),this.mix(e.length);for(let t of e)this.mix(t);return this}let t=String(e);this.mix(1),this.mix(t.length);for(let e of t)this.mix(e.codePointAt(0));return this}clone(){let t=new e;return t.h1=this.h1,t.h2=this.h2,t.h3=this.h3,t.h4=this.h4,t}finish(){let{h1:e,h2:t,h3:n,h4:r}=this;return e=Math.imul(n^e>>>18,597399067),t=Math.imul(r^t>>>22,0xab0e9789),n=Math.imul(e^n>>>17,951274213),r=Math.imul(t^r>>>19,0xa1e38b93),e^=t^n^r,[e>>>0,(t^e)>>>0,(n^e)>>>0,(r^e)>>>0]}mix(e){this.h1=this.h2^Math.imul(this.h1^e,597399067),this.h2=this.h3^Math.imul(this.h2^e,0xab0e9789),this.h3=this.h4^Math.imul(this.h3^e,951274213),this.h4=this.h1^Math.imul(this.h4^e,0xa1e38b93)}};function t(e,t){if(!Number.isInteger(t)||t<0||t>2**32-1)throw RangeError(`Not a valid array length: ${t}.`);if(t>0&&!e)throw RangeError(`Cannot draw items from an empty array.`)}function n(e,t,n){if(t===void 0)return;let r=typeof t==`function`?Array.from(e,t):[...t];if(r.length!==e.length)throw RangeError(`Got ${r.length} weights for ${e.length} items.`);if(r.some(e=>!(e>=0&&Number.isFinite(e))))throw RangeError(`Weights have to be finite and not negative.`);if(r.filter(e=>e>0).length<n)throw RangeError(`At least ${n} items need a positive weight.`);return r}const r=e=>e.reduce((e,t)=>e+t,0);function i(e,t,r){let i=n(e,t,r);if(!i)return t=>e[t.below(e.length)];let a=s(i);return t=>e[a(t)]}function a(e,t,r){let i=n(e,t,Math.min(r,e.length));return(t,n)=>{let r=[];if(i){let e=[...i];for(let i=0;i<n;i++){let n=s(e)(t);r.push(n),e[n]=0}}else if(n===1)r.push(t.below(e.length));else{let i=e.keys().toArray();for(let e=0;e<n;e++){let n=e+t.below(i.length-e);r.push(i[n]),i[n]=i[e]}}return r}}function o(e,t,n){if(t===0)return[];if(t<e.length)return n(t);let r=t%e.length,i=Array.from({length:t-r},(t,n)=>e[n%e.length]);if(r)for(let e of n(r))i.push(e);return i}function s(e){let t=r(e);if(t===1/0||t>0&&t<2**-1022){let n=e.reduce((e,t)=>Math.max(e,t),0);e=e.map(e=>e/n),t=r(e)}return n=>function(e,t,n){let r=e.float()*n;for(let[e,n]of t.entries())if(r-=n,r<0)return e;return t.findLastIndex(e=>e>0)}(n,e,t)}const c=2**53;var l=class{a;b;c;d;constructor([e,t,n,r]){this.a=e,this.b=t,this.c=n,this.d=r;for(let e=0;e<15;e++)this.word()}below(e){let t=c-c%e,n=this.integer();for(;n>=t;)n=this.integer();return n%e}boolean(e=.5){return this.float()<e}boundedFloat(e){let t=e(this.float());if(!Number.isFinite(t))throw RangeError(`A bounded roll’s easing curve has to return a finite number, got ${t}.`);return Math.min(1,Math.max(0,t))}bytes(e){let t=new Uint8Array(e),n=0;for(let r=0;r<e;r++)r%4==0&&(n=this.word()),t[r]=255&n,n>>>=8;return t}float(){return this.integer()/c}integer(){return(this.word()>>>5)*2**26+(this.word()>>>6)}word(){let e=this.a+this.b+this.d>>>0;return this.d=this.d+1>>>0,this.a=(this.b^this.b>>>9)>>>0,this.b=this.c+(this.c<<3)>>>0,this.c=(this.c<<21|this.c>>>11)+e>>>0,e}};const u=e=>Array.isArray(e)?[...e]:[e],d=e=>typeof e==`number`||typeof e==`string`,f=(e,t)=>{let n=Math.abs(t-e);if(!Number.isSafeInteger(e)||!Number.isSafeInteger(t)||!Number.isSafeInteger(n))throw RangeError(`Cannot roll an integer between ${e} and ${t}: both have to be safe integers at most 2 ** 53 − 1 apart.`);return n};var p=class n{chain;hash;position=0;seedValue;constructor({id:t=[],seed:n}={}){let r=u(t);if(!r.every(d))throw TypeError(`An ID has to be a number or a string.`);if(!(n===void 0||d(n)||n instanceof Uint8Array))throw TypeError(`A seed has to be a number, a string or a Uint8Array.`);this.chain=Object.freeze(r),this.seedValue=n instanceof Uint8Array?new Uint8Array(n):n,this.hash=new e,this.hash.absorb(this.seedValue);for(let e of r)this.hash.absorb(e)}get ids(){return this.chain}get index(){return this.position}get seed(){return this.seedValue instanceof Uint8Array?new Uint8Array(this.seedValue):this.seedValue}bytes({size:e}){if(!Number.isSafeInteger(e)||e<0)throw RangeError(`A byte count has to be a nonnegative safe integer, got ${e}.`);return this.makeStream().bytes(e)}chance(e=50){return this.rollBoolean({chance:e/100})}makeChild(e){return new n({id:[...this.ids,...u(e)],seed:this.seedValue})}next(){return this.position++,this}pick(e,n=1,r){t(e.length,n);let i=a(e,r?.weights,n);return o(e,n,t=>i(this.makeStream(),t).toSorted((e,t)=>e-t).map(t=>e[t]))}roll(e){let t=this.makeStream().float(),n=e?.easing;return n?n(t):t}rollBoolean(e){let t=e?.chance??.5;if(!(t>=0&&t<=1))throw RangeError(`A chance has to lie between 0 and 1, got ${t}.`);return this.makeStream().boolean(t)}rollInteger(e,t=0,n){typeof t!=`number`&&(n=t,t=0);let r=Math.min(e,t),i=f(e,t),a=i+1,o=n?.easing;if(!o)return r+this.makeStream().below(a);let s=this.makeStream().boundedFloat(o);return r+Math.min(i,Math.floor(s*a))}rollIntegerRadius(e){return this.rollInteger(-e,e)}rollItem(e,n){return t(e.length,1),i(e,n?.weights,1)(this.makeStream())}rollRadius(e,t){if(!Number.isFinite(e))throw RangeError(`A radius has to be finite, got ${e}.`);let n=Math.abs(e),r=t?.easing;if(r){let e=this.makeStream(),t=e.boundedFloat(r)*n;return(e.boolean()?-t:t)+0}return(2*this.roll()-1)*n+0}sample(e,n=e.length,r){t(e.length,n);let a=i(e,r?.weights,Math.min(n,1)),o=this.makeStream();return Array.from({length:n},()=>a(o))}shuffle(e,n=e.length,r){t(e.length,n);let i=a(e,r?.weights,n),o=this.makeStream(),s=[];for(;s.length<n;)for(let t of i(o,Math.min(e.length,n-s.length)))s.push(e[t]);return s}slice(e,n=1){return t(e.length,n),o(e,n,t=>{let n=this.rollInteger(e.length-t);return e.slice(n,n+t)})}vary(e,t,n){if(!Number.isFinite(e))throw RangeError(`A base has to be finite, got ${e}.`);return e+this.rollRadius(t,n)}varyInteger(e,t,n){if(!Number.isSafeInteger(e)||!Number.isSafeInteger(t))throw RangeError(`An integer base and delta have to be safe integers, got ${e} and ${t}.`);let r=e-t,i=e+t;if(!n?.easing)return this.rollInteger(r,i);let a=f(r,i)/2,o=this.rollRadius(a+.5,n);return e+Math.sign(o)*Math.min(a,Math.round(Math.abs(o)))}makeStream(){return new l(this.hash.clone().absorb(this.position).finish())}};export{p as default};
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"stable-random","description":"returns `'stable-random'`","version":"0.0.1","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js","default":"./index.js"}},"author":"Jaid <6216144+Jaid@users.noreply.github.com> (https://github.com/Jaid)","license":"MIT","repository":"github:Jaid/stable-random"}
1
+ {"name":"stable-random","version":"0.1.0","description":"Deterministic random rolls keyed by a seed, a chain of IDs and an index, independent of call order.","keywords":["deterministic","prng","procedural-generation","random","seeded"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Jaid/stable-random.git"},"funding":"https://github.com/sponsors/Jaid","sideEffects":false,"type":"module","types":"./lib.d.ts","exports":{".":{"types":"./lib.d.ts","import":"./lib.js","default":"./lib.js"}}}
package/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- declare module 'stable-random' {
2
- /**
3
- * returns `'stable-random'`
4
- */
5
- export default () => string
6
- }
package/index.js DELETED
@@ -1 +0,0 @@
1
- export default () => 'stable-random'
package/readme.md DELETED
@@ -1 +0,0 @@
1
- # stable-random
File without changes