Generate random integer, double, string, char in C