Is it possible to update Array elements in a list comprehension?

Try enclosing the expression in square brackets.

[TEST[rand(1:5)] += 1 for i in 1:10]

In Julia, they’re called ‘array comprehensions’.