Randomness generation based on spontaneous emissions of lasers