R/main.R
randomValuesWithSum.Rd
Vector of random Integer Values of given Sum
randomValuesWithSum(n, sumOfValues, names = seq_len(n))
number of values
sum of values in the result vector
names of elements in the result vector. Default: seq_len(n)
seq_len(n)
named vector of integer values with sum(values) == sumOfValues
sum(values) == sumOfValues