creating a unique random number generator

Hey everyone, so I am trying to have this program randomly generate 10 student id numbers that are 1 through 10 but I do not want there to be any repeating numbers. The scores one is just fine but I can not seem to figure out how to get the ID numbers to not repeat. anyone have some advice or help?