Post Reply 
Editor/converter/program manager for the Prime Calculator (PrimeComm)
01-12-2014, 10:21 AM (This post was last modified: 01-12-2014 10:31 AM by ArielPalazzesi.)
Post: #20
RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things
Hello!

If I'm not mistaken, the en

Code:
num_secreto local: = (rand () mod 100) + 1;

generates numbers between 1.0 and 2.0 (real numbers with decimals).

[Image: attachment.php?aid=160]

If the game requires numbers between 1 and 100, I think the simplest way is to

Code:
num_secreto local: IP = (random (1,100));

returns (natural) numbers between 1 and 100.

In the line

Code:
if input( total_intentos,"Total de Intentos","Intentos=","Digite un # como total de intentos maximo" )  
then if total_intentos <= 0 then kill end;

should be

Code:
if input( total_intentos,"Total de Intentos","Intentos=","Digite un # como total de intentos maximo" )  
then if total_intentos <= 0 then kill; end;

Am I right?

Greetings!

PS: Sorry about Off Toppic


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
ASCII 7 bits - compsystems - 01-07-2014, 08:57 PM
ASCII 7 bits - compsystems - 01-08-2014, 02:18 PM
RE: PrimeComm: Alternative Windows (Library/Console/GUI) utility to send/convert things - ArielPalazzesi - 01-12-2014 10:21 AM



User(s) browsing this thread: 2 Guest(s)