So long as the randomness is weighted in favor of the player, it’s permissible. But most players find randomness that hinders them less enjoyable.