Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Text Truncation & Random Number Generation


This topic is 7011 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

Hi aflgenx,

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

Int(Random * 9) + 1

:P

Posted (edited)

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

Edited by Guest

This topic is 7011 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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