Random letters

How is this done?