generate_basic_random
Generate a random integer within a specified range for applications like lottery systems, game randomness, ID generation, or test data creation. Customize with optional salt, minimum, and maximum values.
Instructions
Basic Random Number Generator
Generate a random integer within the specified range
Args:
salt (str, optional): Random number salt value for increased randomness. Defaults to "".
min_value (int, optional): Minimum value (inclusive). Defaults to 0.
max_value (int, optional): Maximum value (inclusive). Defaults to 1000000.
Returns:
str: JSON string containing the random number result
Application Scenarios:
1. Lottery systems
2. Game random numbers
3. Random ID generation
4. Test data generation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
max_value | No | ||
min_value | No | ||
salt | No |
Input Schema (JSON Schema)
{
"properties": {
"max_value": {
"default": 1000000,
"title": "Max Value",
"type": "integer"
},
"min_value": {
"default": 0,
"title": "Min Value",
"type": "integer"
},
"salt": {
"default": "",
"title": "Salt",
"type": "string"
}
},
"title": "generate_basic_randomArguments",
"type": "object"
}