Welcome!
That’s pretty good evidence that you’re not running what you think you’re running. Like rdeits, it works for me and I also suspect you have more than one method defined for that matrix function. You can see which one is being called by asking Julia: @which matrix(min,max,n). And you can see all the defined methods with methods(matrix).