Reduction of qubits in a quantum algorithm for Monte Carlo simulation by a pseudo-random-number generator