Skip 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.

Random Number Fields

Featured Replies

I have a layout with five number fields. I would like to have appear in each field in a record of that layout a random number from 1 to 50, making certain that no field in the record has a repeat of a number from another field in that record. In other words, each record contains 5 unique numbers, anywhere from 1 to and including 50. Can anyone assist me with a formula that accomplishes this task?

Hi

you can try this one.

sburech.zip

  • Author

Please excuse me. I am very new to Filemaker and am a bit confused by your suggestion. I downloaded the file you sent and pushed the Insert Values button but nothing happened to the fields. I did notice a change in the cursor's shape, however. Am I to add something to the script you created? Am I to insert something in the fields? Perhaps I should have waited longer for the loop in the script to work?

Thanks for your help.

Did you delete the record ?

If yes, create a new record before pushing the button.

Daniele's file requires version 8.5 or higher. It shouldn't be too hard to adapt it for version 7, but - could you first explain the purpose behind this?

Daniele's file requires version 8.5 or higher.

Ohhh, sure !

I didn't see your FM version !

It shouldn't be too hard to adapt it for version 7

I do not remember if there was the $var in version 7.

If yes, it isn't too hard to adapt.

sburech2.zip

Script variables came in version 8.

  • Author

Thanks. That did it. And the purpose was "just for fun." I am trying to learn the program which was given to me. I am an amateur and intend to stay that way.

Nice use of a looping sub-script with a variable ScriptParameter.

From the school of Søren Dyhr.

From the school of Søren Dyhr.

Yikes yesterday did I recieve a mail calling me a prominent member of the filemaker community and now this, is some sort of conspiracy going on here? Would you like the IBAN code to my bank account to donate appropriately or... ?

--sd

is some sort of conspiracy going on here?

Yes. I received the same mail and I have managed to trace it back to extra-terrestrial aliens trying to take over the planet Earth by planting bugs in database applications.

Genx alias Yoda :giggle:

--sd

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.