gen_rnd_vec: Generate random vectors for answers

Description Usage Value Examples

View source: R/exams_webex_fcts.R View source: R/exams_fcts.R

Description

This function generates random vectors with first element equal to 1 and rest equal to proportions. It is mostly used for building alternatives in numerical questions: solution*afedR_gen_rnd_vec().

This function generates random vectors with first element equal to 1 and rest equal to proportions. It is mostly used for building alternatives in numerical questions: solution*afedR_gen_rnd_vec().

Usage

1
2
3

Value

A vector

A vector

Examples

1
2
print(afedR_gen_rnd_vec())
print(afedR_gen_rnd_vec())

msperlin/adfeR documentation built on March 26, 2021, 3:05 a.m.