Assign different questions to students

If I have 40 questions in a formative, is there a way for it to randomly choose just 20 questions randomly from my bank of 40? If so, can a formative randomly assign different questions to my students in the class?