#! usr/bin/env ruby # -*- coding: utf-8 -*- quiz = ["1","2","3"] srand() number = rand(quiz.length) p quiz[number]