From: "Arthur" To: , Subject: RE: random under djgpp Date: Fri, 23 Oct 1998 16:08:25 +0100 Message-ID: <000501bdfe96$fb5a71c0$974b08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <70osqi$49k$1@news.kren.nm.kr> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal Reply-To: djgpp AT delorie DOT com > i don't know..get random number.. > i write "int x=random(260)" under turbo c.. > i'd like to get between 0 and 260.. > help me plz.. what to write.. under djgpp?? Write "x = random() % 261" to get between 0 and 260. > email supercms AT netian DOT com > thanks.. Please read the newsgroup after you post! I've posted several replies to your previous messages already. James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819