Set random input matrix
Add timer