Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
207 B
6
Indexable
Never
    public static int RepeatDice(int repeatCount, int dice)
{
    Random rnd = new Random();
    int ret = 0;
    for (int i = 0; i < repeatCount; i++)
        ret = ret + rnd.Next(1,dice);
    return ret;
}
Leave a Comment