mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
15 lines
145 B
C++
15 lines
145 B
C++
#include <T/stdlib.h>
|
|
#include "Dice.h"
|
|
|
|
Dice::Dice()
|
|
{
|
|
T::srand(T::time(0));
|
|
}
|
|
|
|
unsigned Dice::roll()
|
|
{
|
|
return (T::rand() % 6) + 1;
|
|
}
|
|
|
|
|