Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Unique Random number generation

razzy
8 - Asteroid

Hi All,

Any thought on this please?

I am using this formula to generate random number using two fields that were identifiers the formula works but i am having duplicates i however want a unique value of the numbers of any unique records any thought will be appreciated;

Formula Used:  

HexToNumber(Left(MD5_UNICODE([Field1]+[Field2]),7))*1000/268435455

 

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@razzy 
I dont see any random function in your formula, we can add one RanIt function.
But still, there is still a chance of getting duplicated, which can be reduced by increase the Range of RanInt.

0312-razzy.PNG

razzy
8 - Asteroid

Thank you i was able also to solve it with another approach

Qiu
21 - Polaris
21 - Polaris

@razzy 
Thank you for the information .
Would it be possible to share yoru approach? 😁

Labels
Top Solution Authors