I have a Hamiltonian (Z) in matrix form, I solved it for time independent random real numbers, now want to introduce time dependent in such a way at any time the random real numbers change between the range {-Sqrt[3sigma2], Sqrt[3sigma2]}, here is my code
Nmax = 100; (*Number of sites*)
tini = 0; (*initial time*)
tmax = 200; (*maximal time*)
\[Sigma]2 = 0.1; (*Variance*)
n0 = 50; (*initial condition*)
ra = 1; (*coupling range*)
\[Psi]ini = Table[KroneckerDelta[n0 - i], {i, 1, Nmax}];
RR = RandomReal[{-Sqrt[3*\[Sigma]2], Sqrt[3*\[Sigma]2]}, Nmax];
Z = Table[
Sum[KroneckerDelta[i - j + k], {k, 1, ra}] +
Sum[KroneckerDelta[i - j - k], {k, 1, ra}], {i, 1, Nmax}, {j, 1,
Nmax}] + DiagonalMatrix[RR];
usol = NDSolveValue[{I D[\[Psi][t], t] ==
Z.\[Psi][t], \[Psi][0] == \[Psi]ini}, \[Psi], {t, tini, tmax}];
What can I do for introduce this time dependent and solve the differential equation(usol)? I hope my question is clear