public void initBank() {
        Account[] accounts = new Account[NUM_ACCOUNTS];

        for (int i = 0; i < NUM_ACCOUNTS; ++i) {
            Account account = new Account(i,
                    (int) (Math.random() * MAX_INIT_AMOUNT));
            accounts[i] = account;
        }

        bank = new Bank(accounts);
        bank.calcTotalAmount();
    }