&gt; The numpy version makes it clear that you are using random integers, not floating point values.<p>That&#x27;s also completely clear in the Julia version, if you learn a little Julia.<p>&gt; In numpy, most operations are element-wise by default, because the result would be ambiguous or not useful otherwise.<p>This is why I think the Julia approach is better. If I write `a == 7`, am I testing whether `a` is 7 or whether any of the elements of `a` are 7?