|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 5. Configuration User, File & Clipboard > AIG. - AI Google Gemini Integration |
MiniRobotLanguage (MRL)
AIG.SetSeed
Set the Random Seed for Generation
Intention
Specify a random seed value for the AI generation process. Using the same seed with the same prompt and other generation parameters should ideally result in more deterministic and reproducible outputs.
This Command sets the AIG_Seed global variable with the provided integer value.
To reset the seed to its default state (effectively telling the API not to use a specific seed), you must pass the sentinel value -1.
Use this Command to:
�Improve Reproducibility: Get more consistent outputs for the same inputs during testing or specific use cases.
�Debugging: Reduce randomness when trying to isolate issues.
Note: Perfect determinism is not always guaranteed even with a seed, but it significantly increases consistency.
Provide an integer value as parameter P1. Use -1 to reset to the default behavior (no specific seed).
Example Usage
// Set a specific seed value
AIG.SetSeed|12345
DBP. Random seed set to 12345.
// Reset seed to default (no specific seed)
AIG.SetSeed|-1
DBP. Random seed reset to default.
Syntax
AIG.SetSeed|P1
AIG.ssd|P1
Parameter Explanation
P1 - (Required) An integer value representing the desired random seed.
� �- Pass -1 to reset to the default behavior (no specific seed sent to the API, typically resulting in seed 0).
Remarks
- Using a seed helps make responses more predictable but doesn't guarantee identical results every time.
- Use AIG.GetSeed to retrieve the currently configured seed value.
See also: