A89: displaying varibles
[Prev][Next][Index][Thread]
A89: displaying varibles
i have 2 questions for everyone...
number 1:
i would like to find a random number by subtracting
the maximum number from the minimum, using that differance and finding the
random, and then adding the minimum number to the newly found random
number.
i tried this:
max=20000;
min=12000;
b=
( max - min );
num= rand(b);
final= (num+min);
i got errors when i did this though. what am i
doing wrong?
Number 2:
i want to display the random
number using printf_xy
in the code above how would i go about displaying
varible 'final'