initial commit

This commit is contained in:
2025-03-11 05:17:34 +08:00
parent d1f60e7c82
commit 9238177ad6
27 changed files with 924 additions and 0 deletions

12
lib/random.c Normal file
View File

@@ -0,0 +1,12 @@
#include <random.h>
const int _random_a = 100003;
const int _random_c = 114514 + 33;
const int _random_m = 1000000007;
int seed = 0;
int random(void)
{
seed = _random_a * (seed + _random_c) % _random_m;
return seed;
}