lonesomejubilee Posted January 12, 2007 Posted January 12, 2007 I need to generate a random number between 1 and 28. How do I do this and if it is over 28, how do I make it go back and try again? thanks
Orlando Posted January 12, 2007 Posted January 12, 2007 Hi Vandy Here is a calculation I use, I have amended it to your requirements. 1 + Round ( Random * ( 28 - 1 ) ; 0 ) This will generate a random number between 1 and 28 each time, you can have this in a calc or as a set field script step. I hope this does the trick. Orlando
Recommended Posts
This topic is 6586 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 accountSign in
Already have an account? Sign in here.
Sign In Now