Although generation of correlated Rayleigh fading envelopes has been intensively considered in the literature, all conventional methods have their own shortcomings, which seriously impede their applicability. In this paper, a very general, straightforward algorithm for generation of an arbitrary number of Rayleigh envelopes with any desired, equal or unequal power, in wireless channels either with or without Doppler frequency shifts, is proposed. The proposed algorithm can be applied in case of spatial correlation, such as with antenna arrays in Multiple Input Multiple Output (MIMO) systems, or spectral correlation between the random processes like in Orthogonal Frequency Division Multiplexing (OFDM) systems. It can also be used for generating correlated Rayleigh fading envelopes in either discrete-time instants or a real-time scenario. Besides being more generalized, our proposed algorithm is more precise, while overcoming all shortcomings of the conventional methods.