FUNCTION::RANDINT(3stap)
β¨ NAME β¨
okay so bestie, welcome to the Random functions Tapset corner of the SystemTap Tapset Reference (yes, that's the 3stap manual, iykyk) π and today's main character is:
function::randint β it returns a random number between [0,n) π
no cap, that's the whole vibe. a lil random number generator that lives in your tapset. obsessed.
πΈ SYNOPSIS πΈ
randint:long(n:long)
so it takes a long called n, and it hands you back a long. simple. elegant. iconic. β
π¦ ARGUMENTS π¦
nβ the number past the upper limit of the range. and bestie, listen, it is not larger than2**20. that's the ceiling, that's the line, do not cross it π. think ofnas the fence just past the last number you could actually get, since the range is[0,n)and the)meansnitself is not invited to the party π.
fr fr, keepnat or under2**20or you're gonna have a bad time.
π SEE ALSO π
tapset::random(3stap)β go hang out with the rest of the random fam π«Ά
and that's the tea, babe π this was brought to you by the SystemTap Tapset Reference, version situation as of September 2026 π stay random, stay iconic, mwah ππ
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms