From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2007-03-20 18:38:42


On 3/20/07, Xu, Peng <peng.xu_at_[hidden]> wrote:
> int t = rand() % k + 1;

What is that + 1 doing there?
Arrays and vectors start at index 0.