Brought random() into Matrix namespace.