In a random manner; "the houses were randomly scattered"; "bullets were fired into the crowd at random".