learning.sh now generates random matrix each time