DataFixtures/ORM/LoadPeople.php
private function getRandomAddress()
    {
        return (new Address())
                      ->setStreetAddress1($this->faker->streetAddress)
                      ->setStreetAddress2(
                            rand(0,9) > 5 ? $this->faker->streetAddress : ''
                            )
                      ->setPostcode($this->getReference(
                                LoadPostalCodes::$refs[array_rand(LoadPostalCodes::$refs)]
                            ))
                      ->setValidFrom($this->faker->dateTimeBetween('-5 years'))
              ;
    }
private function getRandomAddress()
    {
        return (new Address())
                      ->setStreetAddress1($this->faker->streetAddress)
                      ->setStreetAddress2(
                            rand(0,9) > 5 ? $this->faker->streetAddress : ''
                            )
                      ->setPostcode($this->getReference(
                                LoadPostalCodes::$refs[array_rand(LoadPostalCodes::$refs)]
                            ))
                      ->setValidFrom($this->faker->dateTimeBetween('-5 years'))
              ;
    }
Creata a random address

@return Address