gen_rnd_vec: Generate random vectors for answers

View source: R/exams_webex_fcts.R

gen_rnd_vecR Documentation

Generate random vectors for answers

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().

Usage

gen_rnd_vec()

Value

A vector

Examples

print(afedR_gen_rnd_vec())

msperlin/afedR documentation built on Sept. 11, 2022, 9:49 a.m.