Random numbers using QB in Linux

by (Login burger2227)

If you were on Linux, you could do this to have random numbers from 1 to 8.

OPEN "/dev/random" FOR INPUT AS #1
X = (ASC(INPUT$(1,1)) AND 7) + 1
CLOSE #1




    
This message has been edited by dean.menezes on Jun 3, 2009 6:50 AM
This message has been edited by burger2227 on Jun 2, 2009 10:22 PM

Posted on Jun 2, 2009, 10:09 PM

Respond to this message   

Return to Index


Response TitleAuthor and Date
*Don't you mean INPUT$(1,1) ? on Jun 3
 * OK, I fixed it by editing Clippy's postqbguy on Jun 3