On Sun, Jan 23, 2011 at 8:56 PM, Dark Haukka <lord_dark_haukka / hotmail.com> wrote: > Let's have a dice. Written on the dice, there are six values: - - 0 0 + > +. > The "minus" value substracts one point, the "zero" doesn't do anything > at all, and the "plus" value adds one point. > I want to create a program that asks the user how many dices wants to > roll and roll them, showing the values (not math values, but printed > values instead) and the result of adding every value. Do you want hints to solve it yourself, or the answer? Here are some hints: 1. Use an array to represent each die 2. The way to get a random number out of an array: r = rand(array.length) - 1 random_value = array[r] martin