Find Jobs
Hire Freelancers

Algorithm for repetition and random sorting

$30-5000 USD

Cancelled
Posted over 14 years ago

$30-5000 USD

Paid on delivery
I am writing software which is basically a form of test. That's not important, but right now I have an algorithm that sorts the last 5 questions into a random order and then begins with question one. It then repeats. The only problems I have with this code are the questions may receive duplicate answers. As in, the user has a few choices which are selected randomly and my current code only tests to see if the random selection equals the answer, and changes it so that only one of them is the right answer. The wrong answers themselves may duplicate. I know this is a basic if/then and can easily do it, but I've shoved in enough other logic to have messy code and I could use some help cleaning up the algorithm altogether. I want a fresh mind to accomplish this task so I can see a more systematic way of accomplishing my goal. Aside from one other error, which I know how to fix, I'm going to post my code so you can see what I'm doing. It's PureBasic, which is not hard to read. It declares variables like this VariableName.I (where I is the type of variable). I'm programming the GUI, logic otherwise, and pretty much making it, but I'm by myself and could use someone's viewpoint on it. ## Deliverables I've figured out that I should not combine the array used for selection and randomizing with the array used to hold the data. This has caused me plenty of errors already and when I rewrite that part, I can refresh my algorithm on the choice-creation side and literally flush its buffers to prevent mix-ups (another bug it has). So after I do that I may be fine, but I'd be hoping for the best outcome so I might still need someone to write a fresh algorithm. I used to be more into math/coding and tutorials so the tough algorithms were easy, but now I sloppily make them and step through them like I'm new slowly working out all the kinks. Just not as logical as I used to be. Oh yeah, the main function of this program is to quiz the user on a few questions then repeat those 5 times while rearranging the order. Then they move on to the next set. It has more complex functions too but if this is logically cleaned up then the next should be easy to code and I'll handle that. I'm NOT going to ask for someone to do the whole thing for me, yet anyway. I'm tired of seeing posts like that, so I'm just asking for this part for assistance. People are too lazy! Note that this request is asking for your ability to think logically more than anything else. I don't care how many basic systems you've finished or what portfolio you have, as long as you can design. That means if you have an unfinished, or tons of unfinished programs, that prove you can think complex, I'll count that. But if you can just explain that you know english, math, and enough to at least create this clean, that'll be good too. Like I said, you will get my code that does this already, but with bugs. No, you won't get the program, just the algorithm. Thank you. also, bid for approximately one or two hours, but if you understand this already then it'll probably take way less than that. It took me 2 hours to figure out how to make this algorithm is why I'm saying that. Think of it as a "gateway" and each gateway opens when the first 5 things have been seen a few times. That's what made it easy on my brain. Stephen
Project ID: 2977960

About the project

6 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average $34 USD for this job
User Avatar
See private message.
$59.50 USD in 10 days
4.9 (37 reviews)
5.6
5.6
User Avatar
See private message.
$85 USD in 10 days
5.0 (7 reviews)
3.3
3.3
User Avatar
See private message.
$12.75 USD in 10 days
3.2 (5 reviews)
3.4
3.4
User Avatar
See private message.
$17 USD in 10 days
5.0 (1 review)
0.9
0.9
User Avatar
See private message.
$17 USD in 10 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$11.05 USD in 10 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Everett, United States
5.0
14
Payment method verified
Member since Jul 18, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.