Add an instantation for random boolean
This commit is contained in:
parent
d74b8ad40f
commit
43a8fe8c2d
@ -44,6 +44,11 @@ namespace util {
|
|||||||
random (void)
|
random (void)
|
||||||
{ return range<float>::UNIT.random (); }
|
{ return range<float>::UNIT.random (); }
|
||||||
|
|
||||||
|
template <>
|
||||||
|
bool
|
||||||
|
random (void)
|
||||||
|
{ return rand () & 0x01; }
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T&
|
T&
|
||||||
randomise (T &val)
|
randomise (T &val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user