Renamed random(int) to Random(int) to avoid conflict with long random() in stdlib.h, which might not be on all platforms.