This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/reference/universe/random.md
Andrea Luzzardi f3f5e7c714 docs: make universe
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:29:02 -07:00

34 lines
1.1 KiB
Markdown

---
sidebar_label: random
---
# dagger.io/random
Random generation utilities.
Example:
```cue
str: random.#String & {
seed: "str"
length: 10
}
```
## #String
Generate a random string
### #String Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*seed* | `string` |Seed of the random string to generate. When using the same `seed`, the same random string will be generated because of caching. |
|*length* | `*12 \| number` |length of the string |
### #String Outputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*out* | `string` |generated random string |