Core Random Number Generators

Rand and IRand as core macros.

(18 Votes)
1.2 (Updated 12 years ago)
3.4kB
August 01, 2006
Reaktor 5 or lower

DESCRIPTION

Random number generator macros in Core.

Rand - Generate a random number between [0 and 1.0)

IRand - Generate a random 32-bit integer.

Linear Congruentual RNGs that are ideal for Computer Music use. Fast. And random. And they run for a long time wihtout repeating. What more can one say?

The quest to liberate Core from Primary continues.

(I guess there is one more thing to say after all. These RNGs aren't particularly better or worse than the Primary level rand macro. They just save you the hassle of having to route a random number from primary level).

COMMENTS  (3)

Red Wierenga
11 years ago
Robin, thanks for these. I guess I didn't pay attention as to when NI included random number generators in core. Have you compared yours and theirs?
mike stacey
12 years ago
really nice stuff. when i start digging into core i'm going to be all over these. thanks for it, and thanks for all the work you have been doing here.
Paule
12 years ago
It seems to be: NI's voting has a defect and my tag is vanished. Good work Robin.
now