Module refactoring

This commit is contained in:
Peter
2019-06-16 00:51:10 +01:00
parent 819583121e
commit 08fe209b9f
1118 changed files with 9144 additions and 9141 deletions

View File

@@ -0,0 +1,19 @@
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include "rngs.h"
float frand(float from, float to)
{
return (float)(((double)random()/RAND_MAX)*(to-from)+from);
}
int irand(int from, int to)
{
return (int)(((double)random()/RAND_MAX)*(to-from+1)+from);
}
int signrand()
{
return irand(0, 1)*2-1;
}