Solving Implement Rand10 Using Rand7 in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Example 1:

Input: 1
Output: [7]

Example 2:

Input: 2
Output: [8,4]

Example 3:

Input: 3
Output: [8,1,10]

Note:

Follow up:

See the full details of the problem Implement Rand10 Using Rand7 at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go