# sampleJubjubSchnorrSk

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / sampleJubjubSchnorrSk

# Variable: sampleJubjubSchnorrSk()

```
const sampleJubjubSchnorrSk: () => bigint = jubjubSampleScalar;
```

Alias for [jubjubSampleScalar](https://docs.midnight.network/api-reference/compact-runtime/functions/jubjubSampleScalar.md). Samples a random JubJub Schnorr signing key.

Samples a random JubJub scalar.

The returned value is in the range \[0, JUBJUB\_SCALAR\_MODULUS).

## Returns[​](#returns "Direct link to Returns")

`bigint`
