Doc fix

rand(r) works also when r is a StepRange
replace Range1 by UnitRange

Backport of #8281