Initializes and randomizes the population