Generate random 10-digit number

I would like to create a dynamic variable - a random 10-digit number
how do i do this?