updated random generator test (int32_t range checks)