public static List<Question> getRandomQuestions(int count, Type type)
    {
        List<Question> questionList = new ArrayList<Question>(count);

        try
        {
            PreparedStatement getRandomQuestionsStatement = getQuestionsFromDatabaseStrategy.getStatement();

            getRandomQuestionsStatement.setShort(1, type.getShortType());
            getRandomQuestionsStatement.setInt(2, count);

            ResultSet questionsResultSet = getRandomQuestionsStatement.executeQuery();

            while (questionsResultSet.next())
            {
                Question newQuestion = new Question();

                newQuestion.setId(questionsResultSet.getInt(1));
                newQuestion.setParentId(questionsResultSet.getInt(2));
                newQuestion.setNumber(questionsResultSet.getShort(3));
                newQuestion.setType(Type.parseType(questionsResultSet.getShort(4)));
                newQuestion.setQuestion(questionsResultSet.getString(5));
                newQuestion.setAnswer(questionsResultSet.getString(6));
                newQuestion.setPassCriteria(questionsResultSet.getString(7));
                newQuestion.setAuthors(questionsResultSet.getString(8));
                newQuestion.setSources(questionsResultSet.getString(9));
                newQuestion.setComments(questionsResultSet.getString(10));

                questionList.add(newQuestion);
            }
        }
        catch (SQLException e)
        {
            handleError("Cannot get questions from database!", e);
        }
        catch (UnknownTypeError e)
        {
            handleError("Unknown error on getting questions!", e);
        }

        return questionList;
    }