I'm trying to generate 8 unique random numbers between 1 and 13. for example my first set of results could be: 2, 8, 4, 6, 3, 10, 12, 1 the results need to be between 1 and 13 and they must be unique. The rand(12) + 1 returns random numbers between 1 and 13, but they are not unique. Any quick solutions? -- Posted via http://www.ruby-forum.com/.