view _FullBNT/KPMtools/sampleUniformInts.m @ 8:b5b38998ef3b

added all that other stuff
author matthiasm
date Fri, 11 Apr 2014 15:54:25 +0100
parents
children
line wrap: on
line source
function M = sampleUniformInts(N, r, c)

% M is an rxc matrix of integers in 1..N

prob = normalize(ones(N,1));
M = sample_discrete(prob, r, c);