The first digit is one of {1, 3, 5, 7, 9}, and the last digit is one of {1, 2, 3, 4, 5}.
If the first digit is one of {1, 3, 5} (3 choices), then the last digit is one of {1, 2, 3, 4, 5} minus whatever is picked for the first digit (4 choices, and the remaining eight digits can be arranged in 8! ways, so there are 12*8! possible permutations.
If the first digit is one of {7, 9} (2 choices, then the last digit is one of {1, 2, 3, 4, 5} (5 choices), and again there are 8! ways of arranging the remaining digits, so there are 10*8! possible permutations.
Then the total number of permutations that fit the criteria is 12*8! + 10*8! = 22*8!. There are 10! total permutations that can be made overall, so the probability of randomly picking one we want is
![\dfrac{22\cdot8!}{10!}=\dfrac{22}{10\cdot9}=\boxed{\dfrac{11}{45}}](https://tex.z-dn.net/?f=%5Cdfrac%7B22%5Ccdot8%21%7D%7B10%21%7D%3D%5Cdfrac%7B22%7D%7B10%5Ccdot9%7D%3D%5Cboxed%7B%5Cdfrac%7B11%7D%7B45%7D%7D)