randomized setup