All pastes #761882 Raw Edit

Mine

public text v1 · immutable
·published 2007-11-05 03:24 UTC
rendered paste body
    public void choose()
    {
        final int NUM_RANGE = 3;
        int choiceNum = (int) (NUM_RANGE * Math.random());
        if (choiceNum == 0)
        {
            this.choice = "rock";
        }
        else if (choiceNum == 1)
        {
            this.choice = "paper";
        }
        else 
        {
            this.choice = "scissors";
        }
    }