setrand
Set the random number seed in PARI/GP to control randomness in computations. Specify an integer seed to reproduce results.
Instructions
Set PARI's random number seed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"seed": "<seed>"
},
"name": "setrand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | A positive integer or a GEN of type t_VECSMALL. |