取时间秒数后的值
一个6位数的随机数:
select convert(int,left(reverse(str(rand(datepart(ms,getdate()))*10000000,7)),1))