As far as I understand, best way to generate seeded random numbers in Spark is to use mapPartititons with a seeded Random instance for each partition. But graph.pregel in GraphX does not have anything similar to mapPartitions.
Can something like this be done in GraphX Pregel API?