public void randomize() {
		try {
			if (sql.getConnection() == null) {
				sql.connect();
			}
			sql.getVals();
			// mathGame.sql.close();
		} catch (Exception e) {
			System.out.println("Get vals from DB failed");
			e.printStackTrace();
		}
		
		System.out.println("\n\n\n\n*******GAMETYPE=="+gameType+"**********\n\n\n");
		
		if (gameType == GameType.FRACTIONS) {
			ArrayList<Double> newValues = randomFractionValues();

			card1.setStrValue(convertDecimaltoFraction(newValues.get(0)));
			card2.setStrValue(convertDecimaltoFraction(newValues.get(1)));
			card3.setStrValue(convertDecimaltoFraction(newValues.get(2)));
			card4.setStrValue(convertDecimaltoFraction(newValues.get(3)));
			card5.setStrValue(convertDecimaltoFraction(newValues.get(4)));
			card6.setStrValue(convertDecimaltoFraction(newValues.get(5)));

			values.set(0, card1.getStrValue());
			values.set(1, card2.getStrValue());
			values.set(2, card3.getStrValue());
			values.set(3, card4.getStrValue());
			values.set(4, card5.getStrValue());
			values.set(5, card6.getStrValue());
			ans.setStrValue(sql.getAnswer());
			System.out.println(newValues.get(0));
			
			card1.setValue(String.valueOf(newValues.get(0)));
			card2.setValue(String.valueOf(newValues.get(1)));
			card3.setValue(String.valueOf(newValues.get(2)));
			card4.setValue(String.valueOf(newValues.get(3)));
			card5.setValue(String.valueOf(newValues.get(4)));
			card6.setValue(String.valueOf(newValues.get(5)));
			ans.setValue(String.valueOf(NumberCard.parseNumFromText(ans.getStrValue())));
			// card1.parseNumFromText(newValues.get(3))
		}
		
		else if(gameType == GameType.DECIMALS) {
			ArrayList<Double> newValues = randomDecimalValues();

			card1.setStrValue(String.valueOf(newValues.get(0)));
			card2.setStrValue(String.valueOf(newValues.get(1)));
			card3.setStrValue(String.valueOf(newValues.get(2)));
			card4.setStrValue(String.valueOf(newValues.get(3)));
			card5.setStrValue(String.valueOf(newValues.get(4)));
			card6.setStrValue(String.valueOf(newValues.get(5)));

			values.set(0, card1.getStrValue());
			values.set(1, card2.getStrValue());
			values.set(2, card3.getStrValue());
			values.set(3, card4.getStrValue());
			values.set(4, card5.getStrValue());
			values.set(5, card6.getStrValue());
			ans.setStrValue(sql.getAnswer());
			System.out.println(newValues.get(0));
			
			
			card1.setValue(String.valueOf(newValues.get(0)));
			card2.setValue(String.valueOf(newValues.get(1)));
			card3.setValue(String.valueOf(newValues.get(2)));
			card4.setValue(String.valueOf(newValues.get(3)));
			card5.setValue(String.valueOf(newValues.get(4)));
			card6.setValue(String.valueOf(newValues.get(5)));
			ans.setValue(String.valueOf(NumberCard.parseNumFromText(ans.getStrValue())));
		}
		
		else{
			ArrayList<Integer> newValues = randomIntegerValues();

			card1.setStrValue(String.valueOf(newValues.get(0)));
			card2.setStrValue(String.valueOf(newValues.get(1)));
			card3.setStrValue(String.valueOf(newValues.get(2)));
			card4.setStrValue(String.valueOf(newValues.get(3)));
			card5.setStrValue(String.valueOf(newValues.get(4)));
			card6.setStrValue(String.valueOf(newValues.get(5)));

			values.set(0, card1.getStrValue());
			values.set(1, card2.getStrValue());
			values.set(2, card3.getStrValue());
			values.set(3, card4.getStrValue());
			values.set(4, card5.getStrValue());
			values.set(5, card6.getStrValue());
			ans.setStrValue(sql.getAnswer());
			System.out.println(newValues.get(0));
			
			
			card1.setValue(String.valueOf(newValues.get(0)));
			card2.setValue(String.valueOf(newValues.get(1)));
			card3.setValue(String.valueOf(newValues.get(2)));
			card4.setValue(String.valueOf(newValues.get(3)));
			card5.setValue(String.valueOf(newValues.get(4)));
			card6.setValue(String.valueOf(newValues.get(5)));
			ans.setValue(String.valueOf(NumberCard.parseNumFromText(ans.getStrValue())));
		}
		
		// Tag each card with "home" (cardPanel) being original location
		card1.setHome("home");
		card2.setHome("home");
		card3.setHome("home");
		card4.setHome("home");
		card5.setHome("home");
		card6.setHome("home");
		ans.setHome("home");
	}