tokkee.org
Code
projects
/
inkscape.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tweaking tweaks
[inkscape.git]
/
cxxtest
/
sample
/
mock
/
Dice.cpp
1
#include <T/stdlib.h>
2
#include "Dice.h"
3
4
Dice::Dice()
5
{
6
T::srand( T::time( 0 ) );
7
}
8
9
unsigned Dice::roll()
10
{
11
return (T::rand() % 6) + 1;
12
}
13
14