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