function [x] = bootstrapgen(n)

m = 5 ;
s = [n,1] ;
z = randn(s) ;
b0 = binornd(1,0.5,s) ;
b1 = binornd(m,0.1,s) ;
b2 = binornd(m,0.9,s) ;
x = z + (b0 .* b1) + ((1-b0) .* b2) + m ;
