NerfUS game coordinator for the Nerf gun firing range
Dependencies: HardwareInterface mbed-rtos mbed
Fork of NerfUS by
source/RandomNumberGenerator.cpp@16:5e6c695468b6, 2017-02-23 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Thu Feb 23 21:22:57 2017 -0500
- Revision:
- 16:5e6c695468b6
- Child:
- 17:48474266a361
Generate a random target course
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Maxime Dupuis |
16:5e6c695468b6 | 1 | #include "RandomNumberGenerator.hpp" |
Maxime Dupuis |
16:5e6c695468b6 | 2 | |
Maxime Dupuis |
16:5e6c695468b6 | 3 | int RandomNumberGenerator::get(int min, int max) |
Maxime Dupuis |
16:5e6c695468b6 | 4 | { |
Maxime Dupuis |
16:5e6c695468b6 | 5 | //TODO: Implement this. For tests, inject a known seed in the constructor |
Maxime Dupuis |
16:5e6c695468b6 | 6 | //(instead of "time(NULL)", which we might use in the real app) |
Maxime Dupuis |
16:5e6c695468b6 | 7 | return 42; |
Maxime Dupuis |
16:5e6c695468b6 | 8 | } |
Maxime Dupuis |
16:5e6c695468b6 | 9 |