Cross posted: https://mathematica.stackexchange.com/questions/274195/sampling-from-discrete-region
How can one define discrete region in mathematica to sample data from? Suppose I want to sample from set {x \in R^{n} : x(i)=1 or -1 for all i \in {1,2,...,n}}, How can one define this discrete region? Thank you.