Files
libstdwullie/src/random/randcoice.c
T
2026-09-11 03:50:43 +01:00

11 lines
295 B
C

// this code is licenced under Wrathmark licence
// © 2026 wullie wulliestudio.com
// please see attached licence for full usage and rights
#include "stdWullie/namespaces/random.h"
int randomChoice(int min, int max){
int ranged = min + (random.xor32() % (max - min + 1));
return ranged;
}