#include <stdlib.h> int main(void){ int a; a=rand()%501+500; printf("a=%d\n",a); return 0;}
Standard input is empty
a=507
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!