static ArrayList<NoSchemaDocument> generateAccounts(int count) {
        ArrayList<NoSchemaDocument> accounts = new ArrayList<NoSchemaDocument>();
        for (int i=0;i<count;i++) {
            NoSchemaDocument account = new NoSchemaDocument();
            account.put("number",getUniqueAccountNumber());
            account.put("type","SAV");
            account.put("balance",randomFloat());
            if (i % 7 == 0) {
                account.put("opened",randomDate());
            }
            account.put("owner",i);
            NoSchemaDocument[] transactions = null;

            if ((i % 2 == 0) || (i % 3 == 0) || (i == 0)) {
                transactions = new NoSchemaDocument[2];
                transactions[0]= new NoSchemaDocument();
                transactions[1]= new NoSchemaDocument();
                transactions[0].put("type","WITH");
                transactions[0].put("timestamp",randomTimestamp());
                transactions[0].put("amount",randomInt(0,10000));

                transactions[1].put("type","DEPO");
                transactions[1].put("timestamp",randomTimestamp());
                transactions[1].put("amount",randomInt(0,1000));
            }
            if (i % 5 == 0) {
                transactions = new NoSchemaDocument[1];
                transactions[0]= new NoSchemaDocument();
                transactions[0].put("type","WIRE");
                transactions[0].put("timestamp",randomTimestamp());
                transactions[0].put("amount",randomInt(0,10000));
            }
            account.put("transactions", transactions);
            accounts.add(account);
        }
        return accounts;
    }