How to get a randomize number but with different value to the value in Random behavior?

The thing I’m talking about is the max of the Random behavior (the one looks like a dice) will choose 1-max value to its input. For example the minimum value is 1 maximum value is 3 in Random for now. I give that object 3 different values, 4; 5 and 9. Now, I want to randomize number 4, 5 or 9 from the Random behavior.

Here’s 2 ways for randomizing a sets of numbers.

3 Likes

Thanks, can you explain more or give me some examples of the second one, which is the bottom, pls?

Both of these examples do exactly the same thing, but the bottom one is a little more complex because how lists work and how the behavior output order works.

Lists (green wires) can work backwards ↔ , so any changes that is made to the list (without clicking the copy checkbox) will apply down the chain of green wires to the original list.

And the behavior order from Once says to use “all” first, so that outputs first and the list order shuffles (randomize) the list and is sent back to the list before the next input is triggered. Then Once inputs to “one” and that will output the first number in the list.

It’s easier to think of it like this:

Once → list all ↔ shuffle
Once → list one → output the first nunber in the list.

2 Likes