1. Examine this
var r = undefined; a = b = c = 20; n = i = r;
|Andorra la Vella|
One of the many reasons I love working with Ruby is it has a rich vocabulary that allows you to accomplish your goals with a minimal amount of code. If there isn't a method that does exactly what you want, it's usually possible to build an elegant solution yourself.
Let's take the example of simulating the rolling of a die.
We can represent a die as an array of its faces.
die = [*?⚀..?⚅] # => ["⚀", "⚁", "⚂", "⚃", "⚄", "⚅"]