#include <iostream>
#include <iterator>
#include <assert.h>
#include <algorithm>
#include <stdlib.h>

using namespace std;

bool a[100];

int random(int b, int e)
{
	assert(b<=e);
	return b+((e-b)*(1.0*rand()/RAND_MAX));
}

int main() {
	srand(clock());
	for(int i=0; i<10; ++i)
	{
		a[i]=true;
		std::swap(a[i], a[random(i+1,100)]);
	};
	cout<<endl;
	std::copy(a, a+100, ostream_iterator<decltype(a[0])>(cout, "\n"));
	return 0;
}