A compact quantum random number generator based on an array of Single Photon Avalanche Diode (SPAD) is presented here. As the main feature, the proposed chip has the capability to generate random numbers without the use of an external source of light. In the present approach, SPAD devices are used as emitters and as detectors. An embedded logic allows distinguishing dark events from events coming from the photon emission. The extracted random bit sequence shows a quite uniform distribution and after being post-processed by means of an integrated circuit, used to maximize the entropy of the system, is able to pass the AIS31 test. The average bit rate is 400 kbps.