error is "Integer" for invalid input) as such, it acepts floats and numeric strings.
PHP will drop the fraction component of floats, both in random_int() and when using (int) typecasting.
PHP will accept any numeric string, directly typecasting it for usage.