Try
rand(Base.Random.GLOBAL_RNG, 0:10, 4)
Even though indexes are “logically” unsigned for plain vanilla arrays, the convention in Julia is to use Int. This prevents unpleasant surprises when doing arithmetic (eg consider subtraction which would result in a negative value, etc).
Int
Slightly related, see the discussion there: