When I evaluate a for in Scala, I get an immutable IndexedSeq (a collection with array-like performance characteristics, such as efficient random a
for
IndexedSeq
You can always transform a range to a list using toList:
> val s = for (i <- (0 to 9).toList) yield math.random + i > s : List[Double]