Random Number Generator of the type comprising: - a photon source; - one or more photon detectors configured in such a way as to detect at least one photon belonging to a flow of detected photons (λ) generated by said photon source; - electronic sampling means operatively associated with said one or more photon detectors and configured in such a way as to implement a logic method for the extraction of a binary sequence based on the arrival time of each one of said detected photons (λ); wherein said photon source and said one or more photon detectors are arranged so that they are adjacent to each other and integrated in a single semiconductor substrate; characterized in that said logic extraction method includes the following steps: - subdividing the observation window of each one of said photon detectors into a plurality of consecutive observation sub-windows ( T w, T w1, T w2, T w3, T w4) having the same duration; - detecting the arrival times of a first photon in each one of said observation sub-windows ( T w, T w1, T w2, T w3, T w4); - in the case where no photon has been detected by said photon detector during one or more of said observation sub-windows ( T w, T w1, T w2, T w3, T w4), considering as arrival time of said photon in said one or more observation sub-windows ( T w, T w1, T w2, T w3, T w4) a time that is longer than the total duration of said one or more observation sub-windows ( T w, T w1, T w2, T w3, T w4); - comparing the arrival times detected at the level of a pair of adjacent observation sub-windows ( T w1 -T w2, T w3 -T w4); - assigning the bit "1" in the case where the arrival time detected for the first sub-window ( T w1, T w3) of said pair ( T w1 -T w2, T w3 -T w4) exceeds the arrival time detected for the second sub-window ( T w2, T w4), or assigning the bit "0" in the case where the arrival time detected for the second sub-window ( T w2, T w4) of said pair ( T w1 -T w2, T w3 -T w4) exceeds the arrival time detected for the first sub-window ( T w1, T w3). - a photon source; - one or more photon detectors configured in such a way as to detect at least one photon belonging to a flow of detected photons (λ) generated by said photon source; - electronic sampling means operatively associated with said one or more photon detectors and configured in such a way as to implement a logic method for the extraction of a binary sequence based on the arrival time of each one of said detected photons (λ); - subdividing the observation window of each one of said photon detectors into a plurality of consecutive observation sub-windows ( T w, T w1, T w2, T w3, T w4) having the same duration; - detecting the arrival times of a first photon in each one of said observation sub-windows ( T w, T w1, T w2, T w3, T w4); - in the case where no photon has been detected by said photon detector during one or more of said observation sub-windows ( T w, T w1, T w2, T w3, T w4), considering as arrival time of said photon in said one or more observation sub-windows ( T w, T w1, T w2, T w3, T w4) a time that is longer than the total duration of said one or more observation sub-windows ( T w, T w1, T w2, T w3, T w4); - comparing the arrival times detected at the level of a pair of adjacent observation sub-windows ( T w1 -T w2, T w3 -T w4); - assigning the bit "1" in the case where the arrival time detected for the first sub-window ( T w1, T w3) of said pair ( T w1 -T w2, T w3 -T w4) exceeds the arrival time detected for the second sub-window ( T w2, T w4), or assigning the bit "0" in the case where the arrival time detected for the second sub-window ( T w2, T w4) of said pair ( T w1 -T w2, T w3 -T w4) exceeds the arrival time detected for the first sub-window ( T w1, T w3).