1class Solution:2 def rand10(self):3 """4 :rtype: int5 """6 x = rand7()7 y = rand7()8 pos = (x - 1) * 7 + y9 if pos > 40:10 return self.rand10()11 return (pos % 10) + 1
WPM •0 •0
ACC •0 •0
TIME •0