%unifperm.m
n = 100;
k = 30;  
[s,ix] = sort(rand(1,n)); 
x = ix(1:k)
