This is my code in Unity C# for the challenge

private int randomNumber;
private int theRemainder;
public Text messageText;


void Update()
{
    if (Input.GetKeyDown(KeyCode.Space))
    {
        randomNumber = Random.Range(4, 100);
        
        theRemainder = randomNumber % 4;

        if(theRemainder == 0)
        {
            messageText.text = "Player 1, it's your turn.";
        }

        if (theRemainder == 1)
        {
            messageText.text = "Player 2, it's your turn.";
        }

        if (theRemainder == 2)
        {
            messageText.text = "Player 3, it's your turn.";
        }

        if (theRemainder == 3)
        {
            messageText.text = "Player 4, it's your turn.";
        }
    }
}
2 Likes

Nice code!