How to set a random Variable to a player and know what Variable it is

OK so I am trying to Set a random Variable to a player and be able to know what the variable is for example what I am seeing on the fourms is to set A global variable for example A to random value in array event player.
I think that means it will set a random player Variable to A= a random number.
But I need to know what that number is to output my scripts. Also I only need 12 numbers for the variables for example 12 players.

Can you please structure your sentences simpler? It is really hard to follow your thought-process, sry.

Do you mean this: set global variable(A, random value in array(all players))
Or do you mean this: set player variable(random value in array(all players), A, event player)
?

This would be this: set player variable(random value in array(all players), A, random integer(0, 100))

What exactly do you want to know? I dont understand you, sry.

[quote=“Shanalotte-21334, post:2, topic:451566”]
Or do you mean this: set player variable(random value in array(all players), A, event player)
?

I think this is what I want but for example when I set this It doesn’t work Like for example I have this script duplicated 11 times so it will be variable A through L

Into test this I have a condition
Player variable(event player,A) == true
And the action is
Display small message(all players(player variable(event player,A,custom string( variable A tested)

And again have a duplicated so it A through L.
I hope I explain this good enough.

Anyways the problem is the message does not appear.

Can you post your code (e.g. the share code)? Seeing your whole code would make it easier for me to help you :slight_smile:

I change it to this method Because of the way my gamemode Is going to be set up anyways the code is. PEQ1C
Also I want the string to only show up on the player that has the number for example A=1 that’s all I wanted to say.