Right. I don’t see anything wrong with the code. You haven’t included the definition of
randomOutputInt255
. What type is it? Print can handle a lot’s of different types, but fill needs float or anything that can be cast as float.
And what do you mean by doesn’t work? Is there an error message or results are not what you expect?