Randomly, yes. But if there was motive, no mental illness is required. History is full of murderers who had both a healthy brain and hateful religious/racial ideology. It's up to government to prevent these people from acting out, by promoting tolerance and placing reasonable restrictions on weapons (of any type).