A.6 randomize与constraint