for ( int i = 0; i < rollsize; i++ )
        allresults[ roll[i] -3 ]++;

ps - don't be afraid to use a little whitespace between operators and operands. makes for easier reading.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.