Date: Fri, 23 Sep 1994 14:19:31 +0200 (MET DST) From: ZRS Subject: Problem with rand() (fwd) To: djgpp Never touched the list??? Let's forward! ZRS (roalz AT varano DOT ing DOT unico DOT it) ---------- Forwarded message ---------- Date: Mon, 19 Sep 1994 11:05:29 +0200 (MET DST) From: ZRS To: djgpp Subject: Problem with rand() HI! Precondition: i have djgpp 1.12 (no maint, yet). It seems that rand() returns alternately an even and an odd number (I.E. 0 141 2900 12717 ...) 1.) Is this the recommended (ANSI) behaviour ?? 2.) This causes me problems in a "Die" C++ class I wrote yesterday, where I have a method: inline unsigned int roll(const unsigned int ndice) { unsigned int result = 0; for(int i=0; i