stream works, but curious what advantage does it have to the simpler ?

val binom = new BinomialDistribution(numNodes - 1, probEdge)
(0 until numNodes) foreach { 
....
val outDegree = binom.sample(rand, 1) // pick one sample from the binomial distribution