Quantum random numbers are fundamental resources (Rev. Mod. Phys. 89 015004) for the fields of communications and information security. Usually, projective measurements can be applied on a two-qubit entangled state to generate quantum random numbers. However, it cannot certify more than one bit of randomness for one set of measurements. On contrast, non-projective measurements in-principle may be able to generate more random bits, and therefore show some merits among present methods. Here, we report the implementation of a quantum random number generator based on a symmetric informationally complete positive operator-valued measure. In our experiment, we prepare a maximally entangled state of two-qubits through spontaneous parametric down-conversion processes, and observe the violation of Gisin’s elegant Bell inequality with the value of 6.8138 ± 0.0822, exceeding the classical bound of 6. Through randomness extractors, including a Toeplitz extractor and a parallel linear feedback shift register based extractor, we finally extract a random string with an autocorrelation coefficient below 10−3 and the string can pass all randomness tests of the National Institute of Science and Technology (NIST).