Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Question on RAND()

tww
8 - Asteroid

Hi all,

 

I am wondering if there is a way to generate "fixed" random numbers, i.e. to generate every time when the workflow runs.

 

In Excel, I used to copy the "random values" to a new column. I am wondering if I could achieve similar results in Alteryx.

 

 

randfixed rand
0.4531250.007403
0.6729310.959654
0.8270620.450144
0.683920.436166
0.7836920.882208
0.4441550.487301
0.7577950.207235
0.9530570.649728
0.0400920.337433
0.3004160.861588
0.3766490.642034
0.4203230.995746
0.1519510.034265
0.0907080.4749
0.5966260.362383
0.5018490.250315
0.184550.857742
0.6827990.81214
0.2109580.166386
0.3766810.512042
0.8291430.398639
0.5935930.016372
0.8088950.296618
2 REPLIES 2
FinnCharlton
13 - Pulsar

Hi @tww , one way to do this is to use the random sample tool, and use the 'Deterministic Output' option:

FinnCharlton_0-1680009644404.png

Here I use the generate rows tool to generate a load of decimals, then take a "random" sample using the deterministic output. Every time the workflow is run, it will choose the same numbers. Hope this helps!

tww
8 - Asteroid

Hi @FinnCharlton Thank you for the suggestion.

Labels