private ArrayList<StockItem> getRandomOrderItemList(boolean customerOrderMode) {
		boolean selected[] = new boolean[getStockDB().getStockList().size()];
		for (int i = 0; i < selected.length; i++)
			selected[i] = false;

		orderStockItemList = new ArrayList<StockItem>();
		grandTotal = 0;

		for (int i = 0; i < random.nextInt((10 - 1) + 1) + 3; i++) {
			Product randomProduct = getStockDB().getRandomProduct();
			int randomQuantity = random.nextInt((10 - 1) + 1) + 1;
			if (!selected[randomProduct.getProductID() - 1]) {
				selected[randomProduct.getProductID() - 1] = true;
				orderStockItemList.add(new StockItem(randomProduct, randomQuantity));
				if (customerOrderMode) {
					grandTotal += (randomQuantity * randomProduct.getRetailPrice());
				}
				else
					grandTotal += (randomQuantity * (randomProduct.getSupplierPrice()));
			}
		}
		return orderStockItemList;
	}