generateRandomFieldElem
generateRandomFieldElem(
q):bigint
Generates a random value within the field bound by q.
Parameters
| Parameter | Type | Description |
|---|---|---|
q | bigint | The upper bound (exclusive) for the random value. |
Returns
bigint
A random bigint value between 0 and q-1.