public static void main(String[] args) {

        Random rand = new Random();
        TosserFactory[] tosserFactoriesArray = {new CoinFactory(), new DiceFactory()};

        for (int i=1; i<20; i++) {
            TosserFactory randTosserFactory = tosserFactoriesArray[rand.nextInt(2)];
            Tosser randTosser = randTosserFactory.getTosser();
            System.out.println(randTosser.getTossResult());
        }
    }