Monte Carlo Hamiltonian: the Linear Potentials