Hi @Plankton @Timo @thecoder2012 @ulrich
I need a solution to randomize all element without ever repeating
Example
I have this values stored in variables
1
2
3
I need to have random this possibile combination
1 (first random)
3 (second random)
2 (third random)
Without ever repeating
What time of solution i can use ?
If a have a long list of variable there are more combination.
I can randomize an array but i can not know a solution to repeat function if value is already used.
This is a simple macro to create random numbers i want to show all different result
{
"Name": "Random_Number_Min_Max",
"CreationDate": "2020-2-4",
"Commands": [
{
"Command": "executeScript_Sandbox",
"Target": "var min = 1000; var max = 1500; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; return randomNumber;",
"Value": "Random_Number"
},
{
"Command": "echo",
"Target": "${Random_Number}",
"Value": "#shownotification"
}
]
}
Echo must show always different numbers.
Thanks