parallelizes random assignment