How to make windows random shader

Hi, I did a project and I would like to texture it, I wanted to put some building textures in it, as I thought it was a night scene, I wanted the windows to be bright, but not all, so I wanted only some windows to emit light, I took a simple texture from the internet, and used colorRamp, to differentiate the windows from the walls, but they all emitted light, so as my knowledge of shaders, it’s almost 0, I left the image in black and white in photoshop and erased some windows, it worked, but I would like to know if it is possible, to make the windows stay lit, just with the nodes, thank you