Günhan
CREATE OR REPLACE FUNCTION random_questions() RETURNS int[] AS $$ SELECT array[id] FROM questions ORDER BY random() LIMIT 10; $$ LANGUAGE SQL;