Forum Academy Marketplace Showcase Pricing Features

Help needed - generating a list of random number with RandomNumber Plugin

@AirDev can you help me?

I’m trying to generate a list of random numbers but cannot make it work.
I added the element on the page and set up the workflow to generate ‘n’ numbers (according to an input field), but it only generates just one number. This is my workflow:


image
image
image
image
image

So, it’s a kind of ‘loop’ and it supposes to run until the ‘contador’ variable reaches the number entered by the user. For example: if the user entered ‘5’, the routine should generate 5 random numbers. The problem is that the workflow just executes ONE time… :frowning:

What am I missing?
Luiz

Hi @luiz.bittencourt,

You could use the Do every x seconds… workflow and have the loop condition on that workflow. For example, these are the example workflows of a whac-a-mole game we built with the RandomNumberPlugin:

Screen Shot 2021-01-13 at 3.00.29 PM

Hi @AirDev
Ah, got it!
But what is this “Regenerate RandomNumber” action? Should I have to use it instead of the other one (Generate RandomNumber)?

Thank you!
Luiz