Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need unique random number within a range Help

Featured Replies

Hello

I need to make a formula that gives us a unique number with a range. The fields are

"lownumber" highnumber" and "RANDOMNUMBER" SO if the low number is 001 and the high number is 999 it needs to pick a random number that hasn't been used ,

I was thinking of adding a field called "USEDNUMBERS" and wondered if somehow it could probe that field and choose. I need help with this one.

Thanks

Stan

I don't think it can be done with just a calculation. This is a little file I made, for my local Mac user group, to do raffles. It can do more than one at once, because they may be giving tickets out from different rolls with discontinous numbers.

You just need the basic Pick New Number Only script. The others are for the discontinous rolls.

RafflesSer.zip

  • Author

Thanks so much, That is what I need to get mine to work. But I am not quite clear if it probes the field to search it to see it the number already exists so as not to duplicate it.

I can't duplicate the numbers because this is for making a badge for each person so they have a unique number at every event on a badge they wear. It is important that I get a unique number.

thanks

Stan

That's what the "not PatternCount()" clause is doing, seeing if the "new" number produced by the Random function exists already in the multi-line global field holding the already picked numbers.

If you want to keep those already picked numbers over a period of time, or do this on a network, you should change that field to a regular text field.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.