Generating a list with only several numbers, but numbers do not repeat

Let’s say I have 5, 8, 10 and 15. I want to create a list of 15 numbers, that has only these numbers but in a random order and a same number does not repeat itself after the current.
Please see the image. Thank you for you help!

One way is this.

if you are happy to insert a Python script, something like this might work:

random_non-repeating_choice.gh (11.6 KB)

1 Like

you expanded what I want to learn, thank you for you script.

Solved my problem right away, thank you.

I am a Python beginner, Can I ask, in this script, what does ‘append’ exactly do? Is it a key command to resolving consecutive number?

In the beginning of the script an empty list is created.

a = []

Append adds an item to this list.