Added randn function to return random floats between -1 and 1.