Extract the "raw" vector code into a Dice class and use std::for_each, std::accumulate and std::tr1::bind.

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…