I am trying to generate a matrix that contains randomly generated finite fields' elements.
Tried several approaches, basically working on this function
I'll highlight to you what the problem actually is, ignoring the matrix part
sage : randint (1, 255)
for a finite field
sage : k.<a> = GF(2^8)
I coerce it as follow
sage : randNum = k (randint(1,255))
but I find it produces to me elements in GF(2)
only 0,1
How can I pull random numbers from any desired field ?