i have to create a random number generator. i think i got a code that would work but im having issues! when i call on the funciton, ie. lottopick(john),
it starts the function code but immediatley i get error undefined function or variable 'john'.
this is the code i have written thus far
lotto = randi(54, [1 6 ]);
fprintf('%s, your lotto picks are %d %d %d %d %d %d \n', name, lotto)