2 * Copyright (C) 2008 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
11 // random_number_between
13 random_number_between(float v1
, float v2
)
16 return v1
+ fmod(rand() / 1000.0, (v2
- v1
));
18 return v2
+ fmod(rand() / 1000.0, (v1
- v2
));
22 #endif // TEST_SUPPORT_H