randconf function

Generate a sample indicator vector