It's modelled with randomness, each card is taken from left or right with a probability, it's not a deterministic model.