maths: range+randperm now handle properly namedispatch