Untitled

mail@pastecode.io avatar
unknown
plain_text
25 days ago
210 B
1
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