Randomised Curtain Panel Number Issue

Hi all,

Following the instructions from a previous post, I have created the same script to test out the finishes for random panels.

Model%201
Model%202
Random%20Panel%20Finishes

What I am having trouble to understand is, why is the actual number for the panels showing up in the Revit model don’t match to the list chop content. Shouldnt the percentage function determine a pretty fixed outcome (±1 depending on the math.round)?

Thanks,
K