This study introduces a technique for generating stochastic electromagnetic (SEM) beams using a modified degenerate cavity laser in which one mirror is substituted with a spatial light modulator (SLM). We propose two methods to manipulate the spatial coherence of SEM beams: the first involves adjusting the size of a spatial filter within the laser cavity, which alters the number of oscillating transverse modes and thus varies the spatial coherence. The second method employs phase modulation by applying a dynamic random phase to the SLM. This dual approach allows for precise control over the spatial coherence properties of SEM beams. Experimental results demonstrate the generation of SEM beams using an SLM within a modified degenerate cavity laser and reveal a correlation between two orthogonal polarization components of the beams.