docs: refreshed stdlib

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-06-16 12:14:39 +02:00
parent 776814910d
commit c6e3d35899
26 changed files with 293 additions and 189 deletions

View File

@@ -6,18 +6,22 @@ sidebar_label: random
Random generation utilities
## #String
```cue
import "dagger.io/random"
```
## random.#String
Generate a random string
### #String Inputs
### random.#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
### random.#String Outputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |