🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@hyperfrontend/random-generator-utils

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperfrontend/random-generator-utils - npm Package Compare versions

Comparing version
0.0.2
to
0.0.3
+92
-15
bundle/index.iife.js

@@ -5,2 +5,55 @@ var HyperfrontendRandomGenerator = (function (exports) {

/**
* Safe copies of Math built-in methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/math
*/
// Capture references at module initialization time
const _Math = globalThis.Math;
/**
* (Safe copy) Returns the largest integer less than or equal to a number.
*/
const floor = _Math.floor;
// ============================================================================
// Powers and Roots
// ============================================================================
/**
* (Safe copy) Returns the base to the exponent power.
*/
const pow = _Math.pow;
/**
* (Safe copy) Returns the square root of a number.
*/
const sqrt = _Math.sqrt;
/**
* (Safe copy) Returns e raised to the power of a number.
*/
const exp = _Math.exp;
// ============================================================================
// Logarithms
// ============================================================================
/**
* (Safe copy) Returns the natural logarithm of a number.
*/
const log = _Math.log;
// ============================================================================
// Trigonometry
// ============================================================================
/**
* (Safe copy) Returns the sine of a number.
*/
const sin = _Math.sin;
// ============================================================================
// Random
// ============================================================================
/**
* (Safe copy) Returns a pseudo-random number between 0 and 1.
* Note: This is NOT cryptographically secure. For secure random values,
* use crypto.getRandomValues().
*/
const random = _Math.random;
/**
* Generates a random number following an exponential distribution.

@@ -12,7 +65,31 @@ *

function randomExponential(lambda) {
const u = Math.random();
return -Math.log(1 - u) / lambda;
const u = random();
return -log(1 - u) / lambda;
}
/**
* Safe copies of Error built-ins via factory functions.
*
* Since constructors cannot be safely captured via Object.assign, this module
* provides factory functions that use Reflect.construct internally.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/error
*/
// Capture references at module initialization time
const _Error = globalThis.Error;
const _Reflect = globalThis.Reflect;
/**
* (Safe copy) Creates a new Error using the captured Error constructor.
* Use this instead of `new Error()`.
*
* @param message - Optional error message.
* @param options - Optional error options.
* @returns A new Error instance.
*/
const createError = (message, options) => _Reflect.construct(_Error, [message, options]);
/**
* Generates a random number following a Gaussian (normal) distribution within a specified range.

@@ -26,11 +103,11 @@ *

if (min > max) {
throw new Error('Min value should be less than or equal to max value.');
throw createError('Min value should be less than or equal to max value.');
}
let u, v, s;
do {
u = Math.random() * 2 - 1;
v = Math.random() * 2 - 1;
u = random() * 2 - 1;
v = random() * 2 - 1;
s = u * u + v * v;
} while (s >= 1 || s === 0);
const std_dev = Math.sqrt((-2 * Math.log(s)) / s);
const std_dev = sqrt((-2 * log(s)) / s);
const z0 = u * std_dev;

@@ -55,4 +132,4 @@ const mu = (min + max) / 2;

function randomLogarithmic(scale) {
const u = Math.random();
return Math.exp(scale * u);
const u = random();
return exp(scale * u);
}

@@ -69,5 +146,5 @@

function randomPowerLaw(alpha, min, max) {
const u = Math.random();
const factor = (Math.pow(max, alpha - 1) - Math.pow(min, alpha - 1)) * u + Math.pow(min, alpha - 1);
return Math.pow(factor, 1 / (alpha - 1));
const u = random();
const factor = (pow(max, alpha - 1) - pow(min, alpha - 1)) * u + pow(min, alpha - 1);
return pow(factor, 1 / (alpha - 1));
}

@@ -82,4 +159,4 @@

function randomPseudo(seed) {
const x = Math.sin(seed) * 10000;
return x - Math.floor(x);
const x = sin(seed) * 10000;
return x - floor(x);
}

@@ -105,3 +182,3 @@

function randomUniform(min, max) {
return Math.random() * (max - min) + min;
return random() * (max - min) + min;
}

@@ -117,3 +194,3 @@

// Generate a random hexadecimal digit, 0 - 15
const randomHex = (Math.random() * 16) | 0;
const randomHex = (random() * 16) | 0;
// Use the randomHex for 'x' and a specific subset for 'y'

@@ -120,0 +197,0 @@ const finalHex = char === 'x' ? randomHex : (randomHex & 0x3) | 0x8;

+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"index.iife.js","sources":["../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":[],"mappings":";;;IAAA;;;;;IAKG;IACG,SAAU,iBAAiB,CAAC,MAAc,EAAA;IAC9C,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE;QACvB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;IAClC;;ICTA;;;;;;IAMG;IACG,SAAU,cAAc,CAAC,GAAW,EAAE,GAAW,EAAA;IACrD,IAAA,IAAI,GAAG,GAAG,GAAG,EAAE;IACb,QAAA,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC;QACzE;IAEA,IAAA,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;IACX,IAAA,GAAG;YACD,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;YACzB,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;YACzB,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;QACnB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAE1B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACjD,IAAA,MAAM,EAAE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G,SAAU,qBAAqB,CAAC,QAAc,EAAA;IAClD,IAAA,OAAO,YAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IACzC;;ICVA;;;;;;IAMG;IACG,SAAU,aAAa,CAAC,GAAW,EAAE,GAAW,EAAA;IACpD,IAAA,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG;IAC1C;;ICTA;;;;IAIG;aACa,MAAM,GAAA;QACpB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,KAAI;;IAEtE,QAAA,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC;;IAG1C,QAAA,MAAM,QAAQ,GAAG,IAAI,KAAK,GAAG,GAAG,SAAS,GAAG,CAAC,SAAS,GAAG,GAAG,IAAI,GAAG;;IAGnE,QAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC9B,IAAA,CAAC,CAAC;IACJ;IAEA;;;;;IAKG;IACG,SAAU,QAAQ,CAAC,GAAW,EAAA;QAClC,MAAM,OAAO,GAAG,wFAAwF;IACxG,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;IAC1B;;;;;;;;;;;;;;;;;;"}
{"version":3,"file":"index.iife.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/math/index.ts","../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../../../libs/utils/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A-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(n)},n.randomExponential=function(n){const t=Math.random();return-Math.log(1-t)/n},n.randomGaussian=function n(t,o){if(t>o)throw new Error("Min value should be less than or equal to max value.");let r,a,e;do{r=2*Math.random()-1,a=2*Math.random()-1,e=r*r+a*a}while(e>=1||0===e);const x=(t+o)/2+r*Math.sqrt(-2*Math.log(e)/e)*((o-t)/6);return x>=t&&x<=o?x:n(t,o)},n.randomLogarithmic=function(n){const t=Math.random();return Math.exp(n*t)},n.randomPowerLaw=function(n,t,o){const r=Math.random(),a=(Math.pow(o,n-1)-Math.pow(t,n-1))*r+Math.pow(t,n-1);return Math.pow(a,1/(n-1))},n.randomPseudo=t,n.randomPseudoTimeBased=function(n){return t(n.getTime())},n.randomUniform=function(n,t){return Math.random()*(t-n)+n},n.uuidV4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})},n}({});
var HyperfrontendRandomGenerator=function(n){"use strict";const o=globalThis.Math,r=o.floor,t=o.pow,e=o.sqrt,x=o.exp,a=o.log,u=o.sin,i=o.random;const s=globalThis.Error,c=globalThis.Reflect;function f(n){const o=1e4*u(n);return o-r(o)}return n.isUuidV4=function(n){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(n)},n.randomExponential=function(n){const o=i();return-a(1-o)/n},n.randomGaussian=function n(o,r){if(o>r)throw t="Min value should be less than or equal to max value.",c.construct(s,[t,x]);var t,x;let u,f,l;do{u=2*i()-1,f=2*i()-1,l=u*u+f*f}while(l>=1||0===l);const d=(o+r)/2+u*e(-2*a(l)/l)*((r-o)/6);return d>=o&&d<=r?d:n(o,r)},n.randomLogarithmic=function(n){const o=i();return x(n*o)},n.randomPowerLaw=function(n,o,r){const e=i(),x=(t(r,n-1)-t(o,n-1))*e+t(o,n-1);return t(x,1/(n-1))},n.randomPseudo=f,n.randomPseudoTimeBased=function(n){return f(n.getTime())},n.randomUniform=function(n,o){return i()*(o-n)+n},n.uuidV4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const o=16*i()|0;return("x"===n?o:3&o|8).toString(16)})},n}({});
//# sourceMappingURL=index.iife.min.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.iife.min.js","sources":["../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts","../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["randomPseudo","seed","x","Math","sin","floor","str","test","lambda","u","random","log","randomGaussian","min","max","Error","v","s","value","sqrt","scale","exp","alpha","factor","pow","seedTime","getTime","replace","char","randomHex","toString"],"mappings":"0DAMM,SAAUA,EAAaC,GAC3B,MAAMC,EAAqB,IAAjBC,KAAKC,IAAIH,GACnB,OAAOC,EAAIC,KAAKE,MAAMH,EACxB,mBCeM,SAAmBI,GAEvB,MADgB,yFACDC,KAAKD,EACtB,sBCrBM,SAA4BE,GAChC,MAAMC,EAAIN,KAAKO,SACf,OAAQP,KAAKQ,IAAI,EAAIF,GAAKD,CAC5B,mBCFM,SAAUI,EAAeC,EAAaC,GAC1C,GAAID,EAAMC,EACR,MAAM,IAAIC,MAAM,wDAGlB,IAAIN,EAAGO,EAAGC,EACV,GACER,EAAoB,EAAhBN,KAAKO,SAAe,EACxBM,EAAoB,EAAhBb,KAAKO,SAAe,EACxBO,EAAIR,EAAIA,EAAIO,EAAIA,QACTC,GAAK,GAAW,IAANA,GAEnB,MAMMC,GAHML,EAAMC,GAAO,EAFdL,EADKN,KAAKgB,MAAM,EAAKhB,KAAKQ,IAAIM,GAAMA,KAIhCH,EAAMD,GAAO,GAI5B,OAAIK,GAASL,GAAOK,GAASJ,EACpBI,EAEAN,EAAeC,EAAKC,EAE/B,sBC1BM,SAA4BM,GAChC,MAAMX,EAAIN,KAAKO,SACf,OAAOP,KAAKkB,IAAID,EAAQX,EAC1B,4BCD+Ba,EAAeT,EAAaC,GACzD,MAAML,EAAIN,KAAKO,SACTa,GAAUpB,KAAKqB,IAAIV,EAAKQ,EAAQ,GAAKnB,KAAKqB,IAAIX,EAAKS,EAAQ,IAAMb,EAAIN,KAAKqB,IAAIX,EAAKS,EAAQ,GACjG,OAAOnB,KAAKqB,IAAID,EAAQ,GAAKD,EAAQ,GACvC,2CCJM,SAAgCG,GACpC,OAAOzB,EAAayB,EAASC,UAC/B,kBCHM,SAAwBb,EAAaC,GACzC,OAAOX,KAAKO,UAAYI,EAAMD,GAAOA,CACvC,sBNHE,MAAO,uCAAuCc,QAAQ,QAAUC,IAE9D,MAAMC,EAA6B,GAAhB1B,KAAKO,SAAiB,EAMzC,OAH0B,MAATkB,EAAeC,EAAyB,EAAZA,EAAmB,GAGhDC,SAAS,KAE7B"}
{"version":3,"file":"index.iife.min.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/math/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts","../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["_Math","globalThis","Math","floor","pow","sqrt","exp","log","sin","random","_Error","Error","_Reflect","Reflect","randomPseudo","seed","x","str","test","lambda","u","randomGaussian","min","max","message","construct","options","v","s","value","scale","alpha","factor","seedTime","getTime","replace","char","randomHex","toString"],"mappings":"0DAUA,MAAMA,EAAQC,WAAWC,KAqEZC,EAAQH,EAAMG,MAiCdC,EAAMJ,EAAMI,IAKZC,EAAOL,EAAMK,KAebC,EAAMN,EAAMM,IAcZC,EAAMP,EAAMO,IAwBZC,EAAMR,EAAMQ,IA0FZC,EAAST,EAAMS,OCvP5B,MAAMC,EAAST,WAAWU,MAQpBC,EAAWX,WAAWY,QCbtB,SAAUC,EAAaC,GAC3B,MAAMC,EAAgB,IAAZR,EAAIO,GACd,OAAOC,EAAIb,EAAMa,EACnB,mBCeM,SAAmBC,GAEvB,MADgB,yFACDC,KAAKD,EACtB,sBCrBM,SAA4BE,GAChC,MAAMC,EAAIX,IACV,OAAQF,EAAI,EAAIa,GAAKD,CACvB,mBCDM,SAAUE,EAAeC,EAAaC,GAC1C,GAAID,EAAMC,EACR,MJoBwBC,EIpBN,uDJoBiEZ,EAASa,UAAUf,EAAQ,CAACc,EAASE,IAAjG,IAACF,EAAkBE,EIjB5C,IAAIN,EAAGO,EAAGC,EACV,GACER,EAAe,EAAXX,IAAe,EACnBkB,EAAe,EAAXlB,IAAe,EACnBmB,EAAIR,EAAIA,EAAIO,EAAIA,QACTC,GAAK,GAAW,IAANA,GAEnB,MAMMC,GAHMP,EAAMC,GAAO,EAFdH,EADKf,GAAM,EAAKE,EAAIqB,GAAMA,KAItBL,EAAMD,GAAO,GAI5B,OAAIO,GAASP,GAAOO,GAASN,EACpBM,EAEAR,EAAeC,EAAKC,EAE/B,sBC3BM,SAA4BO,GAChC,MAAMV,EAAIX,IACV,OAAOH,EAAIwB,EAAQV,EACrB,4BCD+BW,EAAeT,EAAaC,GACzD,MAAMH,EAAIX,IACJuB,GAAU5B,EAAImB,EAAKQ,EAAQ,GAAK3B,EAAIkB,EAAKS,EAAQ,IAAMX,EAAIhB,EAAIkB,EAAKS,EAAQ,GAClF,OAAO3B,EAAI4B,EAAQ,GAAKD,EAAQ,GAClC,2CCNM,SAAgCE,GACpC,OAAOnB,EAAamB,EAASC,UAC/B,kBCDM,SAAwBZ,EAAaC,GACzC,OAAOd,KAAYc,EAAMD,GAAOA,CAClC,sBNHE,MAAO,uCAAuCa,QAAQ,QAAUC,IAE9D,MAAMC,EAAwB,GAAX5B,IAAiB,EAMpC,OAH0B,MAAT2B,EAAeC,EAAyB,EAAZA,EAAmB,GAGhDC,SAAS,KAE7B"}

@@ -8,2 +8,55 @@ (function (global, factory) {

/**
* Safe copies of Math built-in methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/math
*/
// Capture references at module initialization time
const _Math = globalThis.Math;
/**
* (Safe copy) Returns the largest integer less than or equal to a number.
*/
const floor = _Math.floor;
// ============================================================================
// Powers and Roots
// ============================================================================
/**
* (Safe copy) Returns the base to the exponent power.
*/
const pow = _Math.pow;
/**
* (Safe copy) Returns the square root of a number.
*/
const sqrt = _Math.sqrt;
/**
* (Safe copy) Returns e raised to the power of a number.
*/
const exp = _Math.exp;
// ============================================================================
// Logarithms
// ============================================================================
/**
* (Safe copy) Returns the natural logarithm of a number.
*/
const log = _Math.log;
// ============================================================================
// Trigonometry
// ============================================================================
/**
* (Safe copy) Returns the sine of a number.
*/
const sin = _Math.sin;
// ============================================================================
// Random
// ============================================================================
/**
* (Safe copy) Returns a pseudo-random number between 0 and 1.
* Note: This is NOT cryptographically secure. For secure random values,
* use crypto.getRandomValues().
*/
const random = _Math.random;
/**
* Generates a random number following an exponential distribution.

@@ -15,7 +68,31 @@ *

function randomExponential(lambda) {
const u = Math.random();
return -Math.log(1 - u) / lambda;
const u = random();
return -log(1 - u) / lambda;
}
/**
* Safe copies of Error built-ins via factory functions.
*
* Since constructors cannot be safely captured via Object.assign, this module
* provides factory functions that use Reflect.construct internally.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/error
*/
// Capture references at module initialization time
const _Error = globalThis.Error;
const _Reflect = globalThis.Reflect;
/**
* (Safe copy) Creates a new Error using the captured Error constructor.
* Use this instead of `new Error()`.
*
* @param message - Optional error message.
* @param options - Optional error options.
* @returns A new Error instance.
*/
const createError = (message, options) => _Reflect.construct(_Error, [message, options]);
/**
* Generates a random number following a Gaussian (normal) distribution within a specified range.

@@ -29,11 +106,11 @@ *

if (min > max) {
throw new Error('Min value should be less than or equal to max value.');
throw createError('Min value should be less than or equal to max value.');
}
let u, v, s;
do {
u = Math.random() * 2 - 1;
v = Math.random() * 2 - 1;
u = random() * 2 - 1;
v = random() * 2 - 1;
s = u * u + v * v;
} while (s >= 1 || s === 0);
const std_dev = Math.sqrt((-2 * Math.log(s)) / s);
const std_dev = sqrt((-2 * log(s)) / s);
const z0 = u * std_dev;

@@ -58,4 +135,4 @@ const mu = (min + max) / 2;

function randomLogarithmic(scale) {
const u = Math.random();
return Math.exp(scale * u);
const u = random();
return exp(scale * u);
}

@@ -72,5 +149,5 @@

function randomPowerLaw(alpha, min, max) {
const u = Math.random();
const factor = (Math.pow(max, alpha - 1) - Math.pow(min, alpha - 1)) * u + Math.pow(min, alpha - 1);
return Math.pow(factor, 1 / (alpha - 1));
const u = random();
const factor = (pow(max, alpha - 1) - pow(min, alpha - 1)) * u + pow(min, alpha - 1);
return pow(factor, 1 / (alpha - 1));
}

@@ -85,4 +162,4 @@

function randomPseudo(seed) {
const x = Math.sin(seed) * 10000;
return x - Math.floor(x);
const x = sin(seed) * 10000;
return x - floor(x);
}

@@ -108,3 +185,3 @@

function randomUniform(min, max) {
return Math.random() * (max - min) + min;
return random() * (max - min) + min;
}

@@ -120,3 +197,3 @@

// Generate a random hexadecimal digit, 0 - 15
const randomHex = (Math.random() * 16) | 0;
const randomHex = (random() * 16) | 0;
// Use the randomHex for 'x' and a specific subset for 'y'

@@ -123,0 +200,0 @@ const finalHex = char === 'x' ? randomHex : (randomHex & 0x3) | 0x8;

@@ -1,1 +0,1 @@

{"version":3,"file":"index.umd.js","sources":["../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;IAAA;;;;;IAKG;IACG,SAAU,iBAAiB,CAAC,MAAc,EAAA;IAC9C,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE;QACvB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;IAClC;;ICTA;;;;;;IAMG;IACG,SAAU,cAAc,CAAC,GAAW,EAAE,GAAW,EAAA;IACrD,IAAA,IAAI,GAAG,GAAG,GAAG,EAAE;IACb,QAAA,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC;QACzE;IAEA,IAAA,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;IACX,IAAA,GAAG;YACD,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;YACzB,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;YACzB,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAA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A;;;;;IAKG;IACG,SAAU,YAAY,CAAC,IAAY,EAAA;QACvC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK;QAChC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1B;;ICPA;;;;;IAKG;IACG,SAAU,qBAAqB,CAAC,QAAc,EAAA;IAClD,IAAA,OAAO,YAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IACzC;;ICVA;;;;;;IAMG;IACG,SAAU,aAAa,CAAC,GAAW,EAAE,GAAW,EAAA;IACpD,IAAA,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG;IAC1C;;ICTA;;;;IAIG;aACa,MAAM,GAAA;QACpB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,KAAI;;IAEtE,QAAA,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC;;IAG1C,QAAA,MAAM,QAAQ,GAAG,IAAI,KAAK,GAAG,GAAG,SAAS,GAAG,CAAC,SAAS,GAAG,GAAG,IAAI,GAAG;;IAGnE,QAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC9B,IAAA,CAAC,CAAC;IACJ;IAEA;;;;;IAKG;IACG,SAAU,QAAQ,CAAC,GAAW,EAAA;QAClC,MAAM,OAAO,GAAG,wFAAwF;IACxG,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;IAC1B;;;;;;;;;;;;;;;;"}
{"version":3,"file":"index.umd.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/math/index.ts","../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;IAAA;;;;;;;IAOG;IAEH;IACA,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;IAkE7B;;IAEG;IACI,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK;IA0BhC;IACA;IACA;IAEA;;IAEG;IACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;IAE5B;;IAEG;IACI,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI;IAY9B;;IAEG;IACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;IAO5B;IACA;IACA;IAEA;;IAEG;IACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;IAiB5B;IACA;IACA;IAEA;;IAEG;IACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;IAiF5B;IACA;IACA;IAEA;;;;IAIG;IACI,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM;;IClQlC;;;;;IAKG;IACG,SAAU,iBAAiB,CAAC,MAAc,EAAA;IAC9C,IAAA,MAAM,CAAC,GAAG,MAAM,EAAE;QAClB,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;IAC7B;;ICXA;;;;;;;;;;IAUG;IAEH;IACA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK;IAQ/B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;IAGnC;;;;;;;IAOG;IACI,MAAM,WAAW,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAAmB,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO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IAAI,CAAC,GAAG,CAAC;IAC1B;;;;;;;;;;;;;;;;"}

@@ -1,2 +0,2 @@

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).HyperfrontendRandomGenerator={})}(this,function(n){"use strict";function t(n){const t=1e4*Math.sin(n);return t-Math.floor(t)}n.isUuidV4=function(n){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(n)},n.randomExponential=function(n){const t=Math.random();return-Math.log(1-t)/n},n.randomGaussian=function n(t,o){if(t>o)throw new Error("Min value should be less than or equal to max value.");let e,a,r;do{e=2*Math.random()-1,a=2*Math.random()-1,r=e*e+a*a}while(r>=1||0===r);const x=(t+o)/2+e*Math.sqrt(-2*Math.log(r)/r)*((o-t)/6);return x>=t&&x<=o?x:n(t,o)},n.randomLogarithmic=function(n){const t=Math.random();return Math.exp(n*t)},n.randomPowerLaw=function(n,t,o){const e=Math.random(),a=(Math.pow(o,n-1)-Math.pow(t,n-1))*e+Math.pow(t,n-1);return Math.pow(a,1/(n-1))},n.randomPseudo=t,n.randomPseudoTimeBased=function(n){return t(n.getTime())},n.randomUniform=function(n,t){return Math.random()*(t-n)+n},n.uuidV4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}});
!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((n="undefined"!=typeof globalThis?globalThis:n||self).HyperfrontendRandomGenerator={})}(this,function(n){"use strict";const o=globalThis.Math,t=o.floor,e=o.pow,r=o.sqrt,i=o.exp,x=o.log,u=o.sin,a=o.random;const s=globalThis.Error,f=globalThis.Reflect;function c(n){const o=1e4*u(n);return o-t(o)}n.isUuidV4=function(n){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(n)},n.randomExponential=function(n){const o=a();return-x(1-o)/n},n.randomGaussian=function n(o,t){if(o>t)throw e="Min value should be less than or equal to max value.",f.construct(s,[e,i]);var e,i;let u,c,d;do{u=2*a()-1,c=2*a()-1,d=u*u+c*c}while(d>=1||0===d);const l=(o+t)/2+u*r(-2*x(d)/d)*((t-o)/6);return l>=o&&l<=t?l:n(o,t)},n.randomLogarithmic=function(n){const o=a();return i(n*o)},n.randomPowerLaw=function(n,o,t){const r=a(),i=(e(t,n-1)-e(o,n-1))*r+e(o,n-1);return e(i,1/(n-1))},n.randomPseudo=c,n.randomPseudoTimeBased=function(n){return c(n.getTime())},n.randomUniform=function(n,o){return a()*(o-n)+n},n.uuidV4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const o=16*a()|0;return("x"===n?o:3&o|8).toString(16)})}});
//# sourceMappingURL=index.umd.min.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.umd.min.js","sources":["../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts","../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["randomPseudo","seed","x","Math","sin","floor","str","test","lambda","u","random","log","randomGaussian","min","max","Error","v","s","value","sqrt","scale","exp","alpha","factor","pow","seedTime","getTime","replace","char","randomHex","toString"],"mappings":"mQAMM,SA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EAAmB,GAGhDC,SAAS,KAE7B"}
{"version":3,"file":"index.umd.min.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/math/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts","../../../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../../../libs/utils/random-generator/src/random-uniform.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["_Math","globalThis","Math","floor","pow","sqrt","exp","log","sin","random","_Error","Error","_Reflect","Reflect","randomPseudo","seed","x","str","test","lambda","u","randomGaussian","min","max","message","construct","options","v","s","value","scale","alpha","factor","seedTime","getTime","replace","char","randomHex","toString"],"mappings":"mQAUA,MAAMA,EAAQC,WAAWC,KAqEZC,EAAQH,EAAMG,MAiCdC,EAAMJ,EAAMI,IAKZC,EAAOL,EAAMK,KAebC,EAAMN,EAAMM,IAcZC,EAAMP,EAAMO,IAwBZC,EAAMR,EAAMQ,IA0FZC,EAAST,EAAMS,OCvP5B,MAAMC,EAAST,WAAWU,MAQpBC,EAAWX,WAAWY,QCbtB,SAAUC,EAAaC,GAC3B,MAAMC,EAAgB,IAAZR,EAAIO,GACd,OAAOC,EAAIb,EAAMa,EACnB,YCeM,SAAmBC,GAEvB,MADgB,yFACDC,KAAKD,EACtB,sBCrBM,SAA4BE,GAChC,MAAMC,EAAIX,IACV,OAAQF,EAAI,EAAIa,GAAKD,CACvB,mBCDM,SAAUE,EAAeC,EAAaC,GAC1C,GAAID,EAAMC,EACR,MJoBwBC,EIpBN,uDJoBiEZ,EAASa,UAAUf,EAAQ,CAACc,EAASE,IAAjG,IAACF,EAAkBE,EIjB5C,IAAIN,EAAGO,EAAGC,EACV,GACER,EAAe,EAAXX,IAAe,EACnBkB,EAAe,EAAXlB,IAAe,EACnBmB,EAAIR,EAAIA,EAAIO,EAAIA,QACTC,GAAK,GAAW,IAANA,GAEnB,MAMMC,GAHMP,EAAMC,GAAO,EAFdH,EADKf,GAAM,EAAKE,EAAIqB,GAAMA,KAItBL,EAAMD,GAAO,GAI5B,OAAIO,GAASP,GAAOO,GAASN,EACpBM,EAEAR,EAAeC,EAAKC,EAE/B,sBC3BM,SAA4BO,GAChC,MAAMV,EAAIX,IACV,OAAOH,EAAIwB,EAAQV,EACrB,4BCD+BW,EAAeT,EAAaC,GACzD,MAAMH,EAAIX,IACJuB,GAAU5B,EAAImB,EAAKQ,EAAQ,GAAK3B,EAAIkB,EAAKS,EAAQ,IAAMX,EAAIhB,EAAIkB,EAAKS,EAAQ,GAClF,OAAO3B,EAAI4B,EAAQ,GAAKD,EAAQ,GAClC,2CCNM,SAAgCE,GACpC,OAAOnB,EAAamB,EAASC,UAC/B,kBCDM,SAAwBZ,EAAaC,GACzC,OAAOd,KAAYc,EAAMD,GAAOA,CAClC,sBNHE,MAAO,uCAAuCa,QAAQ,QAAUC,IAE9D,MAAMC,EAAwB,GAAX5B,IAAiB,EAMpC,OAH0B,MAAT2B,EAAeC,EAAyB,EAAZA,EAAmB,GAGhDC,SAAS,KAE7B"}

@@ -5,4 +5,11 @@ # Changelog

## [0.0.3](https://github.com/AndrewRedican/hyperfrontend/compare/lib-random-generator-utils@0.0.2...lib-random-generator-utils@0.0.3) (2026-03-02)
### Bug Fixes
* **lib-random-generator-utils:** correct package exports ([0feacc4](https://github.com/AndrewRedican/hyperfrontend/commit/0feacc4295e2f687e6c9f4df118db59aa10d1c69))
## [0.0.2](https://github.com/AndrewRedican/hyperfrontend/compare/lib-random-generator-utils@0.0.1...lib-random-generator-utils@0.0.2) (2026-02-26)
## 0.0.1 (2026-02-15)
'use strict';
/**
* Safe copies of Math built-in methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/math
*/
// Capture references at module initialization time
const _Math = globalThis.Math;
/**
* (Safe copy) Returns the largest integer less than or equal to a number.
*/
const floor = _Math.floor;
// ============================================================================
// Powers and Roots
// ============================================================================
/**
* (Safe copy) Returns the base to the exponent power.
*/
const pow = _Math.pow;
/**
* (Safe copy) Returns the square root of a number.
*/
const sqrt = _Math.sqrt;
/**
* (Safe copy) Returns e raised to the power of a number.
*/
const exp = _Math.exp;
// ============================================================================
// Logarithms
// ============================================================================
/**
* (Safe copy) Returns the natural logarithm of a number.
*/
const log = _Math.log;
// ============================================================================
// Trigonometry
// ============================================================================
/**
* (Safe copy) Returns the sine of a number.
*/
const sin = _Math.sin;
// ============================================================================
// Random
// ============================================================================
/**
* (Safe copy) Returns a pseudo-random number between 0 and 1.
* Note: This is NOT cryptographically secure. For secure random values,
* use crypto.getRandomValues().
*/
const random = _Math.random;
/**
* Generates a random number following an exponential distribution.

@@ -10,7 +63,31 @@ *

function randomExponential(lambda) {
const u = Math.random();
return -Math.log(1 - u) / lambda;
const u = random();
return -log(1 - u) / lambda;
}
/**
* Safe copies of Error built-ins via factory functions.
*
* Since constructors cannot be safely captured via Object.assign, this module
* provides factory functions that use Reflect.construct internally.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/error
*/
// Capture references at module initialization time
const _Error = globalThis.Error;
const _Reflect = globalThis.Reflect;
/**
* (Safe copy) Creates a new Error using the captured Error constructor.
* Use this instead of `new Error()`.
*
* @param message - Optional error message.
* @param options - Optional error options.
* @returns A new Error instance.
*/
const createError = (message, options) => _Reflect.construct(_Error, [message, options]);
/**
* Generates a random number following a Gaussian (normal) distribution within a specified range.

@@ -24,11 +101,11 @@ *

if (min > max) {
throw new Error('Min value should be less than or equal to max value.');
throw createError('Min value should be less than or equal to max value.');
}
let u, v, s;
do {
u = Math.random() * 2 - 1;
v = Math.random() * 2 - 1;
u = random() * 2 - 1;
v = random() * 2 - 1;
s = u * u + v * v;
} while (s >= 1 || s === 0);
const std_dev = Math.sqrt((-2 * Math.log(s)) / s);
const std_dev = sqrt((-2 * log(s)) / s);
const z0 = u * std_dev;

@@ -53,4 +130,4 @@ const mu = (min + max) / 2;

function randomLogarithmic(scale) {
const u = Math.random();
return Math.exp(scale * u);
const u = random();
return exp(scale * u);
}

@@ -67,5 +144,5 @@

function randomPowerLaw(alpha, min, max) {
const u = Math.random();
const factor = (Math.pow(max, alpha - 1) - Math.pow(min, alpha - 1)) * u + Math.pow(min, alpha - 1);
return Math.pow(factor, 1 / (alpha - 1));
const u = random();
const factor = (pow(max, alpha - 1) - pow(min, alpha - 1)) * u + pow(min, alpha - 1);
return pow(factor, 1 / (alpha - 1));
}

@@ -80,4 +157,4 @@

function randomPseudo(seed) {
const x = Math.sin(seed) * 10000;
return x - Math.floor(x);
const x = sin(seed) * 10000;
return x - floor(x);
}

@@ -103,3 +180,3 @@

function randomUniform(min, max) {
return Math.random() * (max - min) + min;
return random() * (max - min) + min;
}

@@ -115,3 +192,3 @@

// Generate a random hexadecimal digit, 0 - 15
const randomHex = (Math.random() * 16) | 0;
const randomHex = (random() * 16) | 0;
// Use the randomHex for 'x' and a specific subset for 'y'

@@ -118,0 +195,0 @@ const finalHex = char === 'x' ? randomHex : (randomHex & 0x3) | 0x8;

@@ -1,1 +0,1 @@

{"version":3,"file":"index.cjs.js","sources":["../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":[],"mappings":";;AAAA;;;;;AAKG;AACG,SAAU,iBAAiB,CAAC,MAAc,EAAA;AAC9C,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE;IACvB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;AAClC;;ACTA;;;;;;AAMG;AACG,SAAU,cAAc,CAAC,GAAW,EAAE,GAAW,EAAA;AACrD,IAAA,IAAI,GAAG,GAAG,GAAG,EAAE;AACb,QAAA,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC;IACzE;AAEA,IAAA,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AACX,IAAA,GAAG;QACD,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;QACzB,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;QACzB,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;IACnB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IAE1B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACjD,IAAA,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO;IAEtB,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;IAC1B,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC;AAE7B,IAAA,MAAM,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK;IAE7B,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,IAAI,GAAG,EAAE;AAChC,QAAA,OAAO,KAAK;IACd;SAAO;AACL,QAAA,OAAO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AAO,CAAC,OAAO,EAAE,CAAC,IAAI,KAAI;;AAEtE,QAAA,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC;;AAG1C,QAAA,MAAM,QAAQ,GAAG,IAAI,KAAK,GAAG,GAAG,SAAS,GAAG,CAAC,SAAS,GAAG,GAAG,IAAI,GAAG;;AAGnE,QAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC9B,IAAA,CAAC,CAAC;AACJ;AAEA;;;;;AAKG;AACG,SAAU,QAAQ,CAAC,GAAW,EAAA;IAClC,MAAM,OAAO,GAAG,wFAAwF;AACxG,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAC1B;;;;;;;;;;;;"}
{"version":3,"file":"index.cjs.js","sources":["../../../../../../../../libs/utils/immutable-api/src/built-in-copy/math/index.ts","../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts","../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAEH;AACA,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAkE7B;;AAEG;AACI,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK;AA0BhC;AACA;AACA;AAEA;;AAEG;AACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;AAE5B;;AAEG;AACI,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI;AAY9B;;AAEG;AACI,MAAM,GAAG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YAAY,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;AACzC;;ACRA;;;;;;AAMG;AACG,SAAU,aAAa,CAAC,GAAW,EAAE,GAAW,EAAA;IACpD,OAAO,MAAM,EAAE,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG;AACrC;;ACTA;;;;AAIG;SACa,MAAM,GAAA;IACpB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,KAAI;;QAEtE,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC;;AAGrC,QAAA,MAAM,QAAQ,GAAG,IAAI,KAAK,GAAG,GAAG,SAAS,GAAG,CAAC,SAAS,GAAG,GAAG,IAAI,GAAG;;AAGnE,QAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC9B,IAAA,CAAC,CAAC;AACJ;AAEA;;;;;AAKG;AACG,SAAU,QAAQ,CAAC,GAAW,EAAA;IAClC,MAAM,OAAO,GAAG,wFAAwF;AACxG,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAC1B;;;;;;;;;;;;"}
/**
* Safe copies of Math built-in methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/math
*/
// Capture references at module initialization time
const _Math = globalThis.Math;
/**
* (Safe copy) Returns the largest integer less than or equal to a number.
*/
const floor = _Math.floor;
// ============================================================================
// Powers and Roots
// ============================================================================
/**
* (Safe copy) Returns the base to the exponent power.
*/
const pow = _Math.pow;
/**
* (Safe copy) Returns the square root of a number.
*/
const sqrt = _Math.sqrt;
/**
* (Safe copy) Returns e raised to the power of a number.
*/
const exp = _Math.exp;
// ============================================================================
// Logarithms
// ============================================================================
/**
* (Safe copy) Returns the natural logarithm of a number.
*/
const log = _Math.log;
// ============================================================================
// Trigonometry
// ============================================================================
/**
* (Safe copy) Returns the sine of a number.
*/
const sin = _Math.sin;
// ============================================================================
// Random
// ============================================================================
/**
* (Safe copy) Returns a pseudo-random number between 0 and 1.
* Note: This is NOT cryptographically secure. For secure random values,
* use crypto.getRandomValues().
*/
const random = _Math.random;
/**
* Generates a random number following an exponential distribution.

@@ -8,7 +61,31 @@ *

function randomExponential(lambda) {
const u = Math.random();
return -Math.log(1 - u) / lambda;
const u = random();
return -log(1 - u) / lambda;
}
/**
* Safe copies of Error built-ins via factory functions.
*
* Since constructors cannot be safely captured via Object.assign, this module
* provides factory functions that use Reflect.construct internally.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/error
*/
// Capture references at module initialization time
const _Error = globalThis.Error;
const _Reflect = globalThis.Reflect;
/**
* (Safe copy) Creates a new Error using the captured Error constructor.
* Use this instead of `new Error()`.
*
* @param message - Optional error message.
* @param options - Optional error options.
* @returns A new Error instance.
*/
const createError = (message, options) => _Reflect.construct(_Error, [message, options]);
/**
* Generates a random number following a Gaussian (normal) distribution within a specified range.

@@ -22,11 +99,11 @@ *

if (min > max) {
throw new Error('Min value should be less than or equal to max value.');
throw createError('Min value should be less than or equal to max value.');
}
let u, v, s;
do {
u = Math.random() * 2 - 1;
v = Math.random() * 2 - 1;
u = random() * 2 - 1;
v = random() * 2 - 1;
s = u * u + v * v;
} while (s >= 1 || s === 0);
const std_dev = Math.sqrt((-2 * Math.log(s)) / s);
const std_dev = sqrt((-2 * log(s)) / s);
const z0 = u * std_dev;

@@ -51,4 +128,4 @@ const mu = (min + max) / 2;

function randomLogarithmic(scale) {
const u = Math.random();
return Math.exp(scale * u);
const u = random();
return exp(scale * u);
}

@@ -65,5 +142,5 @@

function randomPowerLaw(alpha, min, max) {
const u = Math.random();
const factor = (Math.pow(max, alpha - 1) - Math.pow(min, alpha - 1)) * u + Math.pow(min, alpha - 1);
return Math.pow(factor, 1 / (alpha - 1));
const u = random();
const factor = (pow(max, alpha - 1) - pow(min, alpha - 1)) * u + pow(min, alpha - 1);
return pow(factor, 1 / (alpha - 1));
}

@@ -78,4 +155,4 @@

function randomPseudo(seed) {
const x = Math.sin(seed) * 10000;
return x - Math.floor(x);
const x = sin(seed) * 10000;
return x - floor(x);
}

@@ -101,3 +178,3 @@

function randomUniform(min, max) {
return Math.random() * (max - min) + min;
return random() * (max - min) + min;
}

@@ -113,3 +190,3 @@

// Generate a random hexadecimal digit, 0 - 15
const randomHex = (Math.random() * 16) | 0;
const randomHex = (random() * 16) | 0;
// Use the randomHex for 'x' and a specific subset for 'y'

@@ -116,0 +193,0 @@ const finalHex = char === 'x' ? randomHex : (randomHex & 0x3) | 0x8;

@@ -1,1 +0,1 @@

{"version":3,"file":"index.esm.js","sources":["../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":[],"mappings":"AAAA;;;;;AAKG;AACG,SAAU,iBAAiB,CAAC,MAAc,EAAA;AAC9C,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE;IACvB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;AAClC;;ACTA;;;;;;AAMG;AACG,SAAU,cAAc,CAAC,GAAW,EAAE,GAAW,EAAA;AACrD,IAAA,IAAI,GAAG,GAAG,GAAG,EAAE;AACb,QAAA,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC;IACzE;AAEA,IAAA,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AACX,IAAA,GAAG;QACD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ils/immutable-api/src/built-in-copy/math/index.ts","../../../../../../../../libs/utils/random-generator/src/random-exponential.ts","../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts","../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts","../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts","../../../../../../../../libs/utils/random-generator/src/random-power-law.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts","../../../../../../../../libs/utils/random-generator/src/random-pseudo-time-based.ts","../../../../../../../../libs/utils/random-generator/src/random-uniform.ts","../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAEH;AACA,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAkE7B;;AAEG;AACI,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK;AA0BhC;AACA;AACA;AAEA;;AAEG;AACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;AAE5B;;AAEG;AACI,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI;AAY9B;;AAEG;AACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;AAO5B;AACA;AACA;AAEA;;AAEG;AACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;AAiB5B;AACA;AACA;AAEA;;AAEG;AACI,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG;AAiF5B;AACA;AACA;AAEA;;;;AAIG;AACI,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM;;AClQlC;;;;;AAKG;AACG,SAAU,iBAAiB,CAAC,MAAc,EAAA;AAC9C,IAAA,MAAM,CAAC,GAAG,MAAM,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;AAC7B;;ACXA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK;AAQ/B,MAAM,QAAQ,GAAG,UAAU,CAAC,OA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,IAAA,CAAC,CAAC;AACJ;AAEA;;;;;AAKG;AACG,SAAU,QAAQ,CAAC,GAAW,EAAA;IAClC,MAAM,OAAO,GAAG,wFAAwF;AACxG,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAC1B;;;;"}
{
"name": "@hyperfrontend/random-generator-utils",
"version": "0.0.2",
"version": "0.0.3",
"description": "Statistical random distributions and UUID generation for simulations, testing, and procedural content.",

@@ -28,3 +28,14 @@ "license": "MIT",

],
"main": "./index.cjs.js",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./index.esm.js",
"require": "./index.cjs.js"
},
"./bundle": {
"import": "./bundle/index.iife.min.js",
"require": "./bundle/index.iife.min.js"
}
},
"funding": {

@@ -46,14 +57,3 @@ "type": "github",

},
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./index.esm.js",
"require": "./index.cjs.js"
},
"./bundle": {
"import": "./bundle/index.iife.min.js",
"require": "./bundle/index.iife.min.js"
}
},
"main": "./index.cjs.js",
"module": "./index.esm.js",

@@ -60,0 +60,0 @@ "types": "./index.d.ts",

@@ -1,1 +0,1 @@

{"version":3,"file":"random-exponential.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-exponential.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGxD"}
{"version":3,"file":"random-exponential.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-exponential.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGxD"}

@@ -1,1 +0,1 @@

{"version":3,"file":"random-gaussian.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAyB/D;AAED,eAAe,cAAc,CAAA"}
{"version":3,"file":"random-gaussian.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-gaussian.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAyB/D;AAED,eAAe,cAAc,CAAA"}

@@ -1,1 +0,1 @@

{"version":3,"file":"random-logarithmic.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGvD"}
{"version":3,"file":"random-logarithmic.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-logarithmic.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGvD"}

@@ -1,1 +0,1 @@

{"version":3,"file":"random-power-law.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-power-law.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAI9E"}
{"version":3,"file":"random-power-law.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-power-law.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAI9E"}

@@ -1,1 +0,1 @@

{"version":3,"file":"random-pseudo.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGjD"}
{"version":3,"file":"random-pseudo.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-pseudo.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGjD"}

@@ -1,1 +0,1 @@

{"version":3,"file":"random-uniform.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-uniform.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9D"}
{"version":3,"file":"random-uniform.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/random-uniform.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9D"}

@@ -1,1 +0,1 @@

{"version":3,"file":"uuid-v4.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,MAAM,CAW/B;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG7C"}
{"version":3,"file":"uuid-v4.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/utils/random-generator/src/uuid-v4.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,MAAM,CAW/B;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG7C"}