Thanks for the reply.As i siad i am new to vb 2008.if i already have the listbox populated with numbers.(copy and pasted from excel),I just need to be able to display a completely random number in textbox from the numbers in my listbox already.just like in vb6.I was just hoping for something to match the code i had in vb6.Thanks again.