Add an instantation for random boolean

This commit is contained in:
Danny Robson 2013-07-30 14:28:22 +10:00
parent d74b8ad40f
commit 43a8fe8c2d

View File

@ -44,6 +44,11 @@ namespace util {
random (void)
{ return range<float>::UNIT.random (); }
template <>
bool
random (void)
{ return rand () & 0x01; }
template <typename T>
T&
randomise (T &val)