I'm trying to figure out this one, but NSSet(array: x).allObjects works only with [Int].
How to get Generating Random non repeatable array?
var x = map(1...5) { _ in arc4random_uniform(15)}
let xNonRepating = NSSet(array: x).allObjects
if x.count != xNonRepating.count {
//do nothing
} else {
x = map(1...5) { _ in arc4random_uniform(15)}
println(x)
}