basic AI package for randomizing and stratifying