See RaylibCore.GetRandomValue.
int GetRandomValue(int min, int max) => _module.GetRandomValue(min, max);