Code

tweaking tweaks
[inkscape.git] / cxxtest / sample / mock / Dice.cpp
1 #include <T/stdlib.h>
2 #include "Dice.h"
4 Dice::Dice()
5 {
6     T::srand( T::time( 0 ) );
7 }
9 unsigned Dice::roll()
10 {
11     return (T::rand() % 6) + 1;
12 }