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.

Text Truncation & Random Number Generation

Featured Replies

Is possible to truncate text i.e.

Burman is truncated to 3 characters i.e. Bur.

Also, whats the function for generating a random number between 0 and 9?

Cheers for help,

genx

1. Check out the Left() function.

2. Int ( Random * 10 )

  • Author

Worked Great, thanks

Edited by Guest

  • Author

I'm assuming that random number * 10 generates a random number between 0 & 9, is there anyway to make it between 1 & 9. I tried playing round with the function but i still get 0's which are no good.

Help would be great.

Hi aflgenx,

To generate a random number between 1 and 9, I suggest you use:

Int(Random * 9) + 1

:P

  • Author

thanks mate, it always seems to make sense after someone tells you how to do it

Edited by Guest

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.