mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-18 19:44:02 +00:00
add more processor documentation
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
title: Int Random
|
||||
sidebar:
|
||||
order: 2
|
||||
---
|
||||
The `int.random` processor will set the payload to a random integer between the specified `min` and `max` value. The minimum and maximum values are inclusive.
|
||||
|
||||
- **type**: `int.random`
|
||||
- **params**:
|
||||
- **min**: the minimum value for the random integer.
|
||||
- **max**: the maximum value for the random integer.
|
||||
|
||||
### Example
|
||||
This would generate a random integer between -127 and 127 and set the payload to that value.
|
||||
```
|
||||
- type: int.random
|
||||
params:
|
||||
min: -127
|
||||
max: 127
|
||||
```
|
||||
Reference in New Issue
Block a user