Seperate build and test program
Change sampling method to random