There are some situations in which randomization can help bring a pattern or loop to life instead of sounding flat.  For example, parts with real instruments such as pianos can really benefit from introducing a small degree of randomness to help make it sound as though someone is playing it.