I need help making a Randomizer

So, basically I’m making a guide about a bounty system, and I need a randomizer in block code to get a random players name and use it as a bounty. My question is, how would the randomizer look in block code if we can’t get the number of total players in game? And before you say, just us the “Random number” block, here’s a screenshot of what that looks like…
Screenshot 2025-04-29 101425

There is a thing called randomnumber

Yeah, you mean random integer?
Edit: I kind of need a little help with how that would work if we can’t get the amount of players in game, because this:
Screenshot 2025-04-29 101425

Ohh I get it I’ll research on how to do it

1 Like

I’ll put this in the topic, so people can understand why I need help. jic

1 Like

Umm, live player counter → property,
random integer from 1 – property

1 Like

Let me try that! Why didn’t I think of that before…

I don’t see a device for live player count. What it called?
Edit: note to self- Relay, trigger, wire repeater, counter.

you do a var then put that on for 1 to (whatever is your highest number)

then you do a bunch of else ifs or (was it elses)
then that’s pretty much all I remember right now

Well.. the live player counter “device” is here:

Wait that has no pictures

1 Like

Is there a way I could substitute something else for a Zone?

I need to keep track of the total amount of players in-game.

So you can make a trigger loop that connects to a relay, relay-all players-property1 increment-set property 2 property 1-set property1 0-repeat

1 Like