How to make a random team chance?

I’m making a game like murder on garrys mod, and i need to give a random chance to make someone murderer, bystander, and bystander W gun… I already got prefabs of the players with weapon scripts and the players got tags already also. all i need is a random chance for the player to become the murderer prefab.
I’m using C++ btw :slight_smile:

#include <stdlib.h>

int main()
    int random = rand() % 10 + 1;

that will generate a random number from 1-10. If you remove the +1 at the end, it will generate a number from 1-9.

by the way, how are you using C++ with unity? :confused: