So I'm trying to make a program on my TI-84+ calculator. I want it to make a matrix with H rows and 7 columns. I then want it to make sure every value in the table is in between 0 and E.

Here is what I have, I don't know where I'm going wrong. It is making the matrix, but it isn't changing the values.

:ClrHome

:Prompt H

:Prompt E

:randM(H,7)->[A]

:Repeat 0_<[A](X,Y)_<E

:round(1,randInt(1,E))->X

:round(1,randInt(1,E))->Y

:If E<[A](X,Y

:abs([A](X,Y)-E)->[A](X,Y)

:End

Can you help me finish this? Thank you!