The getRandomFloat method was added to the AbstractFactory.