|
Post by zeak on Aug 7, 2019 19:33:11 GMT
Hi Steve,
could you make it so RANDOM function can work with DEFINE DECIMAL. at the moment it will only assign whole numbers with random and not in the negative range.
Also does RANDOM function have an exclude parameter? for example
3 | RUN ACTION | DEFINE DECIMAL VARIABLE | %DECIMAL%::%RANDOM_0.1-1.9!1% this would assign a random number between 0.1 and 1.9 but not 1.
would like to do -1.9 to 1.9 excluding 1 but it wont let me.
|
|
|
Post by Steve on Aug 10, 2019 2:32:53 GMT
Hi Zeak. I'll look into it. Ive gave it a quick go with the existing functions but, yeah like you i can't seem to make it work by hacking something together. I'm going to have to add something into the code for the negative numbers. On a side note, I'm thinking of opening a development branch to the public for the code changes. This will speed up delivery of updates for those who don't mind working within the development branch.
|
|
|
Post by zeak on Aug 13, 2019 0:18:21 GMT
If you can get Random to work with Decimal, then I can make a work around for negative numbers.
|
|
|
Post by zeak on Dec 23, 2019 4:37:25 GMT
I don't know why I didn't think of it before.
|
|
|
Post by Steve on Dec 23, 2019 9:03:58 GMT
yeah thats a good solution. nice work
|
|