¿ªÔÆÌåÓý

Re: Random number between two numbers in range


 

¿ªÔÆÌåÓý

Create a variable -Val1

Set the Value of Val1

Test the Value to a maximum.

?

%Val1%,0

|Val1={Dice~1d1500+500}|

{If~%Val%1>999?999,%Val1%}

?

Something like this should do what you want.

?

?

?

From: [email protected] <[email protected]> On Behalf Of jimmyflowers1 via groups.io
Sent: Wednesday, February 3, 2021 06:52
To: [email protected]
Subject: [TableSmith] Random number between two numbers in range

?

I have a table with various values on each item in the table list. For example, 500-2000, 2000-5000, 5000-10000, etc.

Is there some syntax I can use to basically say pick a random number between 500 and 2000? I've managed to get some of the values by doing 1dX+Y, but the problem I run into is when the value exceeds that and I can't put a cap on it. Any suggestions??

Join [email protected] to automatically receive all group messages.