Skip to content

Commit 76313c8

Browse files
committed
docs: add new generation methods to API reference
1 parent f29f490 commit 76313c8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,25 @@ True random numbers from quantum phenomena:
120120
| `choice(seq)` | Returns random element from sequence |
121121
| `randbytes(n)` | Returns n random bytes |
122122
| `shuffle(seq)` | Shuffles sequence in-place |
123+
| `sample(seq, k)` | Returns k unique elements from sequence |
124+
125+
### Distributions
126+
127+
| Function | Description |
128+
|----------|-------------|
129+
| `uniform(a, b)` | Float uniformly distributed in [a, b] |
130+
| `gauss(mu, sigma)` | Gaussian/normal distribution |
131+
| `triangular(low, high, mode)` | Triangular distribution |
132+
| `exponential(lambd)` | Exponential distribution |
133+
| `weighted_choice(seq, weights)` | Weighted random selection |
134+
135+
### Generators
136+
137+
| Function | Description |
138+
|----------|-------------|
139+
| `random_uuid()` | UUID v4 (e.g., `f47ac10b-58cc-4372-...`) |
140+
| `random_token(length, encoding)` | Hex or base64 token |
141+
| `random_password(length, ...)` | Secure password with configurable charset |
123142

124143
### Management Functions
125144

0 commit comments

Comments
 (0)