delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/18/02:51:28

From: "Fire-Breathing Penguin" <maxiv AT sprint DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Begginer question about Randomizing the timer.
Lines: 11
Organization: home
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <gH003.11822$r_1.7601956@newscontent-02.sprint.ca>
Date: Mon, 17 May 1999 18:18:00 -0700
NNTP-Posting-Host: 209.148.143.182
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-02.sprint.ca 926979916 209.148.143.182 (Mon, 17 May 1999 18:25:16 EDT)
NNTP-Posting-Date: Mon, 17 May 1999 18:25:16 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How do you get a random number? In QBASIC it would be done as
RANDOMIZE TIMER
X=INT(RND*10)+1
. Is there any way to do the same in C/C++?

--§max (The Fire-Breathing Penguin)

-------------------------------------
Who said 12-years-olds can't program?


- Raw text -


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