Random code when doing parallel programming