This plugin generates non-repeating integers within a given range, and will cycle with a given threshold to not repeat within that threshold.
You would want 4 instances, with a range of 1 to 40, if you want to pull cards from each category. Then you pull 4 cards from each instance. The threshold doesn't apply as you'd want to stop at 40 cards pulled, for each deck.
ok i will try that then. Thank you!