Random - Generating random numbers and strings
Author: bowenliang123
Github Repository: https://github.com/bowenliang123/dify-plugin-random
Dify Marketplace: https://marketplace.dify.ai/plugins/bowenliang123/random
Description
A Dify plugin to generate random number, string, UUID, prime number etc.
Tools
Random String:
- Generate a random string with given length from alphabets and numbers.
- Input parameters:
- : Include alphabets from both, either or none of uppercase or lowercase alphabets.
- : Whether to include numbers
- : Whether to include punctuation characters from
- : Number of random strings to generate
- Output:
- eg. for requested length of 30.
Random Number:
-
Generate a random number in the given range of [ lower_bound, upper bound ] .
-
Input:
- and : The range of random number to generate. Either integer or float is accepted.
- : Number of random numbers to generate
-
Output:
- If the digits is set to 0, an integer will be generated.
[Image blocked: No description]
[Image blocked: No description]
Random Prime Number:
- Generate a random prime number in the given range of [ lower_bound, upper bound ] .
- Input:
- and : The range of random prime number to generate. Either integer or float is
accepted.
- Output: A prime number, or if no prime number is found.
Random UUID:
-
Generate a random UUID string in UUID versions of V4, V6, V7 or V8 according to RFC 9562.
[Image blocked: No description]
[Image blocked: No description]
Changelog
-
1.0.0
- Support multiple UUID versions of V4, V6, V7 and V8 in tool according to RFC 9562.
-
0.1.0
- change the random generation from to for bett(er randomness and security
- fix decimal generation with digits guaranteed incase of digits greater than 17
-
0.0.3
- support generating multiple random numbers
-
0.0.1
- introducing tools for random number, prime number and UUID v4 generation
License
Privacy
This plugin collects no data.
All the random object generation are completed locally. NO data is transmitted to third-party services.