A transcranial electrostimulation device comprising: a microcontroller comprising a high frequency generator and a low frequency generator , the high frequency generator configured to generate high frequency pulses in a range of 65 Hz to 100 kHz, the high frequency generator having a first random signal generator configured to randomly change the frequency of the pulses produced by the high frequency generator in increments of 1 kHz to 10 kHz so as to produce random high frequency pulses, the low frequency generator operating in a range of 70 Hz to 85 Hz, the low frequency generator having a second random signal generator configured to randomly change the frequency of the pulses produced by the low frequency generator in increments of 0.25 Hz to 3 Hz so as to produce random low frequency pulses, wherein the random low frequency pulses are configured to modulate the random high frequency pulses, whereby the high frequency generator and the low frequency generator are configured to generate modulated waveforms; an amplitude generation module configured to receive the modulated waveforms and combine the modulated waveforms to output waveforms, wherein the output waveforms comprise a first phase of monopolar modulation waveforms and a second phase of bipolar modulation waveforms, and wherein the amplitude generation module is configured to periodically reverse the polarities of the bipolar modulation waveforms; and four output electrodes configured to be coupled to a skin of a patient and deliver the output waveforms to the patient. a microcontroller comprising a high frequency generator and a low frequency generator , the high frequency generator configured to generate high frequency pulses in a range of 65 Hz to 100 kHz, the high frequency generator having a first random signal generator configured to randomly change the frequency of the pulses produced by the high frequency generator in increments of 1 kHz to 10 kHz so as to produce random high frequency pulses, the low frequency generator operating in a range of 70 Hz to 85 Hz, the low frequency generator having a second random signal generator configured to randomly change the frequency of the pulses produced by the low frequency generator in increments of 0.25 Hz to 3 Hz so as to produce random low frequency pulses, wherein the random low frequency pulses are configured to modulate the random high frequency pulses, whereby the high frequency generator and the low frequency generator are configured to generate modulated waveforms; an amplitude generation module configured to receive the modulated waveforms and combine the modulated waveforms to output waveforms, wherein the output waveforms comprise a first phase of monopolar modulation waveforms and a second phase of bipolar modulation waveforms, and wherein the amplitude generation module is configured to periodically reverse the polarities of the bipolar modulation waveforms; and four output electrodes configured to be coupled to a skin of a patient and deliver the output waveforms to the patient. wherein the output waveforms comprise a first phase of monopolar modulation waveforms and a second phase of bipolar modulation waveforms, and wherein the amplitude generation module is configured to periodically reverse the polarities of the bipolar modulation waveforms; and four output electrodes configured to be coupled to a skin of a patient and deliver the output waveforms to the patient. <EOS>