[GAP Forum] RandomMat with really random source

Ha T. Lam hatlam at gmail.com
Wed Jul 23 22:19:29 BST 2014


Dear GAP forum,

I'm trying to generate random 2x2 matrices with entries from GF(947).
Normally, I would just use RandomMat(2,2,GF(947)), but I want to get
different results every time I start GAP. I found that RandomSource( r, dev
) from the io package (
http://www.gap-system.org/Manuals/pkg/io/doc/chap6.html) allows randomness
from /dev/random, but I don't know how to use it as the random source for
RandomMat. Any advice?

Thank you,

Ha


More information about the Forum mailing list