delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/09/06/09:38:01

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 6 Sep 2007 09:37:35 -0400
Message-Id: <200709061337.l86DbZG8002699@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <jcsvd3d4a5i64aoc9k7gddbfj1lpefdg2d@4ax.com> (message from Brian
Inglis on Thu, 06 Sep 2007 12:27:15 GMT)
Subject: Re: random() : What am I doing wrong?
References: <N1GBi.41236$S91 DOT 9560 AT newsfe7-win DOT ntli DOT net> <13drciokqdoav65 AT corp DOT supernews DOT com> <200709041948 DOT l84JmRfh001331 AT envy DOT delorie DOT com> <jcsvd3d4a5i64aoc9k7gddbfj1lpefdg2d AT 4ax DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> (x % 49) + 1; % => 0..49; + => 1..50

Try and see :-)

(x % 49) + 1

x % 49 => 0..48
+1 => 1..49

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019