Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matslina committed Sep 21, 2023
1 parent 8ca13dc commit aa06287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ See [examples/sunrise.star](../examples/sunrise.star) for an example.

## Pixlet module: Random

The `random` module provides a pseudorandom number generator for pixlet. The generator is automatically seeded to a new random value on each execution, but a deterministic seed can also be set.
The `random` module provides a pseudorandom number generator for pixlet. The generator is automatically seeded on each execution. The seed itself changes every 15 seconds, making apps deterministic over that same time window. This behavior enables more effective caching of execution results on Tidbyt servers. Developer can reseed via `random.seed` if needed.

| Function | Description |
| --- | --- |
Expand Down

0 comments on commit aa06287

Please sign in to comment.