Boost logo

Boost Users :

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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net