---
name: "function::randint"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::randint"
---

# function::randint(3stap)

Return a random number between \[0,n)

## NAME

function::randint - Return a random number between \[0,n)

## SYNOPSIS

```
    randint:long(n:long)
```

## ARGUMENTS

*n*

Number past upper limit of range, not larger than 2\*\*20.

## SEE ALSO0

[*tapset::random*(3stap)](/tapset::random/3stap.md)
