hey guys, I need help trying to simulate a grid/matrix into a visual effect; where the numbers in the grid/matrix represents the amount of sand grains there is in each cell. PLEASE if anyone can help, I have a 5-by-5 matrix, and random numbers in each cell (from 1 to 7)
THANX
User Profile
Collapse
-
I already have a zero-matrix, 7-by-7, so I want to now get random numbers in, any natural numbers from 1-6 -
its not a big matrix, say 7-by-7, the thing is I already have a zero-matrix, its getting the random numbers in. My range is from 0 to 6, for the random numbers.Leave a comment:
-
random numbers in a matrix in python
I'm still new to python, so I would like to know how do I get random numbers in my matrix; more specific, what is the commands for getting a random matrix.
THANX for the help guys -
a matrix as a grid
Can a matrix be used as a grid in python... if not, can anyone let me know the procedure for getting a grid in python. Reason for asking is that i must create a sandpile simulation. thanx -
python and matrices
hey guys
I'm new to python... and I would like to know how do I create a matrix in python, if anyone can help, it would be appreciated. Thanx
No activity results to display
Show More
Leave a comment: