|
-
Sep 17th, 2002, 08:09 AM
#1
Thread Starter
New Member
dividing problem
hi,
ive created a program that can add, subtract, multiply and divide. The problem i have is that in the dividing section of the program it develops the numbers randomly and therefor most of the time the numbers created to divide dont match.
eg, 17 / 5
is there a way i can create numbers that match each other and can be divided like 10 / 2 = ?
cheers.
-
Sep 17th, 2002, 08:13 AM
#2
PowerPoster
make two random integers, then multiply one by the other then use the result as the number that gets divided
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|