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.

determine if a number is Odd or EVEN from a range?

Featured Replies

Hello

I have a range of numbers for streets. The fields are called lo and high.

If the field called "oddeven" says "o" i would like to get a random number in the range that is an odd number , but if the field "oddeven" says "e" I would like to get an even number in the range . Is this possible?

Thanks

Dave

I don't understand if you need to generate the number

if so than

2*Int(random*(lo-hi)/2 - 1)+(oddeven="o")

will do the job

Dj

  • Author

Thanks for the answer. The only time it doesn't work is when the Hi and Lo number are the same in which case it just needs to be that number. For example, If Hi = 33 and lo = 33 then result should be 33. Not clear about that part, Also it puts a negative sign "-" before the number answer.

thanks

Dave

Sorry, didn't think before posting.

Here's the formula

Case(hi-lo ,Min(hi,lo)+2*Int(Random*(Abs(hi-lo)- 1)/2)+(oddeven="o"),hi)

and make Hi and Lo of type number (or use textToNum function)

Dj

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.