pass documents to train, make random as implicit