main srand call.