Fixed simple random cat code