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

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

Recommended Posts

Posted

Need to generate a random dollar amount between $1000 and $2000 with the cents on the end. Have the following formula but how do you limit the cents to two numbers and stop the number going below $1000 (Random * 2000) + 1

Also is there a way to format the result so a comma shows at the thousands mark and to put a $ symbol in the result like $1,387.90

Posted (edited)

Try:

Round ( Random * 1000 + 1000 ; 2 )

Make the result type a number. In layout mode, select the field and choose Number... from the format menu. All the formatting options you need are there.

Edited by Guest
Removed unnecessary parenthesses

This topic is 7041 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.