Hi Christine, is there any way for this to be used more than once at once, so to speak?
for instance :
Random 1 = ${utils.numbers.randomIntWithCeiling(25)}
Random 2 = ${utils.numbers.randomIntWithCeiling(25)}
Random 3 = ${utils.numbers.randomIntWithCeiling(25)}
Will return the same number for all 3 variables.
The ceiling is the number of posts I have, and I want 3 random posts.
I tried
Random1 = ${utils.numbers.randomIntWithCeiling(TotalPosts)}
Random2 = ${utils.numbers.randomIntWithCeiling(TotalPosts -1)}
Random3 = ${utils.numbers.randomIntWithCeiling(TotalPosts -2)}
And that works in that random numbers are generated but there are a few pitfalls in that approach like causing duplicates.
I will obviously have to account for duplicates etc. anyway but still, if I can keep the approach as clean as possible I would prefer that.
Thanks for your help with the original request though that has helped a lot.