rsc3/doc/help/ugen/noise/i-rand.help.scrbl
2022-08-28 12:27:01 +02:00

17 lines
302 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{(i-rand lo hi)}
Generates a single random integer value in uniform distribution
from `lo' to `hi'.
@racketblock[
(let ((f (i-rand 200 1200))
(a (line kr 0.2 0 0.1 remove-synth)))
(audition (out 0 (mul (f-sin-osc ar f 0) a))))
]