I want to constrained random 10 bit such that there won't be 7 consecutive 0s or 1s. Can someone suggest anything ? Thanks in advance

In reply to jigar123:

You might want to look at this or this for ideas.