| delorie.com/archives/browse.cgi | search |
| From: | "Arthur" <arfa AT clara DOT net> |
| To: | <djgpp AT delorie DOT com>, <supercms AT netian DOT com> |
| Subject: | RE: random under djgpp |
| Date: | Fri, 23 Oct 1998 16:08:25 +0100 |
| Message-ID: | <000501bdfe96$fb5a71c0$974b08c3@arthur> |
| MIME-Version: | 1.0 |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |