Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How Does Randomize Work Under The Hood?

dsiegel
5 - Atom

Hi,

 

How does Alteryx specificially randomize its data when using any of the Random/Random %/etc tools? I'm aware they are most likely using a macro that calls out the RAND() function, but how does that RAND() function work under the hood?

 

Any insight would be appreciated.

 

Thanks,

David

2 REPLIES 2
CharlieS
17 - Castor
17 - Castor

It's my understanding that the core tools like Formula are built in C++. I was able to find some interesting information on the C++ rand() function on Google (including the pdf link below). It seems like it is a pseudo-random process that relies on a seed value. I still don't know how the seeding process is handled in Alteryx, maybe it's time based?

 

http://www.math.uaa.alaska.edu/~afkjm/csce211/handouts/RandomFunctions.pdf

JimmyG
Alteryx Alumni (Retired)

Hi @dsiegel. The rand() finction uses the Mersenne Twister algorithm

Labels