view _FullBNT/KPMtools/sampleUniformInts.m @ 9:4ea6619cb3f5 tip

removed log files
author matthiasm
date Fri, 11 Apr 2014 15:55:11 +0100
parents b5b38998ef3b
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);