diff --git a/src/content/docs/processors/float/random.md b/src/content/docs/processors/float/random.md new file mode 100644 index 0000000..18c24af --- /dev/null +++ b/src/content/docs/processors/float/random.md @@ -0,0 +1,22 @@ +--- +title: Float Random +sidebar: + order: 2 +--- +The `float.random` processor will set the payload to a random float between the specified `min` and `max` value. + +- **type**: `float.random` +- **params**: + - **bitSize**: (optional) the bit size of the float to generate, defaults to 32 + - **min**: the minimum value for the random float (inclusive). + - **max**: the maximum value for the random float (exclusive). + +### Example +This would generate a random 64-bit float between 1.1 and 1.5 and set the payload to that value. +``` +- type: float.random + params: + bitSize: 64 + min: 1.0 + max: 1.5 +``` \ No newline at end of file diff --git a/src/content/docs/processors/int/random.md b/src/content/docs/processors/int/random.md index 2caac5b..7eebfd7 100644 --- a/src/content/docs/processors/int/random.md +++ b/src/content/docs/processors/int/random.md @@ -3,12 +3,12 @@ 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. +The `int.random` processor will set the payload to a random integer between the specified `min` and `max` value. - **type**: `int.random` - **params**: - - **min**: the minimum value for the random integer. - - **max**: the maximum value for the random integer. + - **min**: the minimum value for the random integer (inclusive). + - **max**: the maximum value for the random integer (inclusive). ### Example This would generate a random integer between -127 and 127 and set the payload to that value.