I'm looking to a way to create a matrix filled with random values. Tried to create a matrix:make-constant, which, obviously, returns a constant (say, a matrix full of 6s). This answer doesn't seem to be working properly.
In my model, hunters should give random values to every patch in the world. They would then use this value to judge the opportunity to wait for game:
hunters-own [hunter-matrix]
to setup
clear-all
create-hunters number-hunters [
setxy random-xcor random-ycor
set hunter-matrix matrix:make-constant 33 33 random 10 ]
end
Is there a way to make the matrix filled with random numbers instead?