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.

Generating number between 1 to 9

Featured Replies

  • Author

Hi! I have to generate two numbers. One between 1 to 9 (1,2,3,4,5,6,7,8,9) and one between 1 to 26 (1,2,...,25,26). I tried the random function, but I only know how to generate from 1 to 100 or 1000... Anyone have a formula?? Thank you!

jca

Hi! I have to generate two numbers. One between 1 to 9 (1,2,3,4,5,6,7,8,9) and one between 1 to 26 (1,2,...,25,26). I tried the random function, but I only know how to generate from 1 to 100 or 1000... Anyone have a formula?? Thank you!

jca

Int(Random*9)+1

Int(Random*9)+1

If all you want are integers from 1 to 9, here is a simple calc -

Int( (Random* 9) + 1 )

To get it to 26, just replace the 9 with 26 in the calculation.

The +1 is necessary so that the ceiling number will be included.

If all you want are integers from 1 to 9, here is a simple calc -

Int( (Random* 9) + 1 )

To get it to 26, just replace the 9 with 26 in the calculation.

The +1 is necessary so that the ceiling number will be included.

  • Author

thank you for your help... I had setup a much more complex script. that was looping until the number was between 1 and 26 wink.gif hehe thank you!

  • Author

thank you for your help... I had setup a much more complex script. that was looping until the number was between 1 and 26 wink.gif hehe thank you!

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.