Skip to main content
Archived

Have a no duplicate option in RandomNumberGenerator

Related products:Transformers
  • August 25, 2020
  • 1 reply
  • 21 views

siennaatsafe
Safer
Forum|alt.badge.img+12

I recently needed to use a RandomNumberGenerator in a workspace but I needed to have no duplicate values in the random numbers. In my case I was creating a Bingo Sheet but I can see how having no duplicate values would be handy for anonymizing data.

I got around this limitation by adding a duplicate filter and a loop in a custom transformer.

Has anyone else encountered this or is interested in this functionality? Please leave a comment below with your use case.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

ebygomm
Evangelist
Forum|alt.badge.img+51
  • Evangelist
  • August 26, 2020

I think it would be a nice addition. For the bingo card problem, I would generate the numbers and then use a random number generator to shuffle them, see here

https://community.safe.com/s/question/0D54Q000080hXIvSAM/creating-bingo-cards

*the actual workspace looks to have been lost in the migration