R/ran.exam.R

Defines functions `ran.exam`

`ran.exam` <-
function(Qbank)
  {
    ran1 = sample(1:length(Qbank) )
    Q1 = list()
    for(i in 1:length(ran1))
      {
        Q1[[i]] = Qbank[[ran1[i]]]
        
      }

    attr(Q1, "QBord")<-ran1
    return(Q1)
  }

Try the ProfessR package in your browser

Any scripts or data that you put into this service are public.

ProfessR documentation built on Aug. 21, 2023, 9:07 a.m.