Utils new Features
This commit is contained in:
parent
4a2ab6f5d0
commit
c66c943d3a
4 changed files with 300 additions and 0 deletions
12
Utils/outdated/Random.cpp
Normal file
12
Utils/outdated/Random.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
|
||||
#include "Random.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace tp {
|
||||
flt8 randf() {
|
||||
flt8 r = static_cast<flt8>(std::rand()) / static_cast<flt8>(RAND_MAX);
|
||||
return r;
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue