Clamp n into [min,max], numbers discarded | Genaihub