21 Aug
2006
21 Aug
'06
4:30 p.m.
The problem may be that int and ptrdiff_t are distinct types on your platform. Try the following: ptrdiff_t customRand(ptrdiff_t n) { return (rand() % n); } --Johan Råde