I'm having trouble to make something I thougt would be easy.
I have a pool of aviable characters (around 20), and on the start of the layout, I want to choose some of them (around 10), only once each.
Since its only a quick project I dont even want to be a clean code, I'm ok with some hardcoding if it's easier.
Right now I have a 4 variables and a dictionnary in which I repeate the following code:
Variable: RandomKey = number
Variable: Used= string
Variable: index= number
Variable: count= number (is used to repeat the function 10 times)
On start of the layout
dictionnary add key (I add all the keys)
count <= 10
> Function > call "test"
Function on "test"
-Set randomKey to > int(random(0,Dictionary.KeyCount))
-Set index to > -1
Dictionnary For Each key
-Add 1 to > index
Index = randomKey
-Add 1 to > count
-set used to > used&","&randomKey
So with that it find randomly some characters, but pick somethime the same multiple times and I dont know how to check if they where already picked.
Have you any idea on how to do that?