Well you can't. Otherwise it wouldn't be random. If you want to apply additional rules to a random function, you will need to write your own 'random' function. If this is the only rule, then you can (a) remember each return value by storing to a variable as lastRandom, then use a while loop to generate the next random number until the answer does not equal lastRandom.
var lastRandom: Int = -1
func KurtsRandom() -> Int
{
var result = lastRandom
while result == lastRandom
{
result = Int.random(in: 1 ... 13)
}
lastRandom = result
return result
}