@cloudglides/nox 1.1.0 → 1.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.
- package/example/README.md +26 -0
- package/example/index.html +13 -0
- package/example/package-lock.json +1636 -0
- package/example/package.json +20 -0
- package/example/src/App.css +161 -0
- package/example/src/App.jsx +176 -0
- package/example/src/index.css +55 -0
- package/example/src/main.jsx +10 -0
- package/example/vite.config.js +11 -0
- package/package.json +9 -8
- package/src/core.browser.js +10 -0
- package/src/core.js +2 -0
- package/src/index.browser.js +31 -0
- package/src/index.js +1 -0
- package/src/presets.js +7 -0
- package/src/rng.browser.js +141 -0
- package/src/rng.js +6 -5
- package/src/utils/entropy.browser.js +63 -0
- package/src/utils/entropy.js +51 -12
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# nox Demo
|
|
2
|
+
|
|
3
|
+
Interactive demo of the @cloudglides/nox random number generator library.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install
|
|
9
|
+
npm run dev
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Visit http://localhost:5173
|
|
13
|
+
|
|
14
|
+
## Features Demonstrated
|
|
15
|
+
|
|
16
|
+
- **Basic Operations**: nextFloat, int, bool, range, choice
|
|
17
|
+
- **Batch Operations**: Generate multiple values at once
|
|
18
|
+
- **Distributions**: Normal and exponential distributions
|
|
19
|
+
- **Statistical Tests**: Mean, variance, and Kolmogorov-Smirnov tests
|
|
20
|
+
- **Deterministic Mode**: Reproducible sequences with seeds
|
|
21
|
+
|
|
22
|
+
## Technology
|
|
23
|
+
|
|
24
|
+
- React 18
|
|
25
|
+
- Vite
|
|
26
|
+
- @cloudglides/nox v1.1.0
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>nox - RNG Demo</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.jsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|