This has been discussed in many threads. Try searching Google for something like "spiral knights forum alchemer ricochet".
Here are the key points. The bounce directions are somewhat, but not entirely, random. Your goal is to have all of the ricochets hit monsters. If you are trying to take out a single monster, then you'd like the ricochets to bounce "inside" the monster, for massive damage. To do this, you need to have some idea of where the ricochets will bounce. The vocabulary is a little confusing, so I will give explicit examples.
On regular attacks, a single ricochet is emitted. Its direction is roughly, due to randomization, 90 degrees counterclockwise from the direction of the original shot. For example, if your original shot was to the north, then the ricochet bounces roughly west. Therefore, to inflict high damage on a single monster, you should land the shot on the east side of that monster. For then the ricochet goes west, into the monster. For another example, if your original shot was to the east, then the ricochet bounces roughly north. So aim for the south side of the monster.
On charge attacks, two pairs of ricochets are emitted. Their directions are roughly 90 degrees counterclockwise and 90 degrees clockwise from the original shot direction. In other words, the charge ricochet is like a two-sided version of the regular ricochet. To kill a single monster, aim the original shot for either side of the monster, so that one of the ricochets bounces into it. To kill two monsters standing close together, aim for the space between them.