working on a project and i can't figure out how to get unique values every time. The program works but I don't know how to filter unique values so that the 3 strings are different any time. Such as a=abc, b=xyz, c=lmn every time some variation of those, but all unique values.
a = c('ABC', 'XYZ', 'LMN')
if(length(a)==3){
b = sample(a, size = 1, replace = TRUE)
c = sample(a[!(c %in% d)], size = 1, replace = TRUE)
a = sample(a[!(a %in% c(c, b))], size = 1, replace = TRUE)
}