Function to sample dynamic factors created.