Add random generator that accepts state for repetability

This commit is contained in:
nikola
2024-12-01 19:56:14 +01:00
parent bbc8b33224
commit 2112878ca7
11 changed files with 98 additions and 50 deletions

View File

@@ -3,6 +3,5 @@
Color ColorLerp(Color c1, Color c2, float amount);
Color ColorAdd(Color c, int add);
Vector2 CalculateVector(float rotation, float offSet, float len);
float GetRandomFloat();
void drawTexureWithRotation(RenderTexture2D& target, Rectangle& dest, float rotation);
void drawTexureWithRotation(RenderTexture2D &target, Rectangle &dest, float rotation);

8
inc/values/mrand.hpp Normal file
View File

@@ -0,0 +1,8 @@
#include <inttypes.h>
namespace mrand
{
void setSeed(unsigned long long seed);
int getValue(int min, int max);
float getFloat();
}