The most common rim shot effect is produced by striking one drumstick on the the rim and the head of a drum at the same time. The sound can be altered by changing the length of the drumstick that strikes the head of the drum. The sound will be higher in pitch if the drumstickstrikes the head close to the rim. If the drumstickstrikes the head more towards the center of the head, the pitch will be lower and sound more like a gun shot.
Another common rim shot (often called stick shot) effect is produced by laying one drumstick on the drum, with the butt on the head of the drum and the shaft laying across the rim (or just the butt on the head of the drum) and striking it with the second drumstick. The sound can be altered by changing the length of the drumstick that is laying across the rim and head of the drum and further changed by striking the drumstick in different locations between where the striking meets the head and where it meets the rim.