rand! for typed arrays – pass the element type to scalar rand call.