Scala prints invalid shuffle type parameters. You can force work with:
Random.shuffle[Int, IndexedSeq](0 until 4)
or broken with:
Random.shuffle[Int, AbstractSeq](0 to 4)
I do not know why this is due to incorrect parameters for Range , as until was returned, but correct for Range.Inclusive , as to was returned. Range.Inclusive directly subclasses Range without mixing in any way, so it can not be considered otherwise. It looks like a Scala bug for me.
source share