A gastrointestinal stimulation devices including a random stimulation delivery mechanism(s) configured to provide stimuli to a bodily tissue in a vicinity of the stimulation capsule the provided random stimuli being characterized by a stimulation parameter and a control circuitry in communication with said physical stimulation delivery mechanism and configured to set and alter the stimulation parameter non systematically thereby altering the characterization of the stimuli provided to the bodily tissue. The algorithm may be patient tailored and may have a learning machinery which responds to data being received from the patient.