Reputation: 4680
I have scenario I will run 10K times, and I would like each call to be different.
How do I write a feeder that will simply return the numbers from 1 to 10000? (i'm very new to scala)
Is there a way I can get some sort of index from rampUsers?
Upvotes: 0
Views: 756
Reputation: 8705
Something like this could do:
def newSequence():Iterator[Map[String,String]] = {
val seq: Iterator[Int] = Iterator.from(1)
Iterator.continually(Map("id" -> seq.next()))
}
....
.feed(newSequence())
Upvotes: 1