They are nearly pseudo-random(aka as random as they can get), but I do believe there is a mechanism that lowers the chance slightly(Like hardly any, I forget the exact number) of being detective if your karma is below X. (Useful so you don't have some random MassRDMer become detective and completely break the round.)