how to generate 3 random numbers between 1 and 6 using a function called generate_rand

im trying to generate 3 random numbers between 1 and 6 using a function called generate_rand..
but everytime im having an error :
no oprators "<<" matches these operands
and
the last error was :end of file found before the left brace