How to generate a random number sequence that is non-repeating in visual basic .net ?

I am writing a matching program, and need 24 objects to randomly appear, each twice, across 48 spaces. I figured the best way for me to do this would be to assign the positions a number 1 through 48. but the problem is I can’t find a way to generate a random number sequence in visual basic 9 .net

I found many examples in visual basic .net but the conversion doesn’t work. If not some code, many some example programs that either use a random number sequence or randomly sets the position of objects.