This question already has an answer here:

I am trying to create all possible strings of length $8$ from the alphabet $\{+1,-1\}$. I am trying to get help from this question. But not sure where to start from.

Any help?


marked as duplicate by Öskå, m_goldberg, RunnyKine, Sjoerd C. de Vries, Dr. belisarius Aug 7 '14 at 12:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 6
    $\begingroup$ Would this be what you're after, Tuples[{-1, 1}, 8]? $\endgroup$ – Michael E2 Aug 6 '14 at 18:41
  • 2
    $\begingroup$ Similar questions: 4486 (dup. 32212), 15885 (dup. 20794). $\endgroup$ – Michael E2 Aug 6 '14 at 18:54