Find Jobs
Hire Freelancers

Customized Random Function

$30-5000 USD

Completed
Posted about 22 years ago

$30-5000 USD

Paid on delivery
I need a customized random function. The information is coming from a database. The database is enclosed. There is a column called numbers. The higher the number, the greater the probability of the song being chosen. I already have a random function. However, I cannot make it so the higher the number, the greater the likelyhood of the song being chosen. Here is an example. Let's say the playlist has 1000 songs. 100 will be chosen. 200 of those songs have a number of 10. Also, 300 have a number 80. The last 500 have a number of 50. The ones with 100 have 10 times the chances of being chosen than the ones with the number 10. The parameters I already have are array, max numbers, upperbound, and element of the array. If there needs to be one for thing fed in, then that's fine. The only things that should be edited is randoms2 and possibly information after the function to determine what song gets picked. If the function is okay, then add a few lines of code so it follows these rules. Do not change the do loop because when I use this for reals, I will not know exactly how many times to loop at design time. If you need to add anything to the SQL Statement, then comment what I already have. Leave the part where it writes the information to a file. I will use this to test how well it works. Also, keep the other parts I have because I have another function that already works that has a certain number of times between artists. ## Deliverables A customized function where the higher the number in the numbers field, the greater the probability of it being chosen. ## Platform Windows 98, Access 2000, and Visual Basic 6.0 Professional Edition
Project ID: 2843956

About the project

3 proposals
Remote project
Active 22 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
Awarded to:
User Avatar
See private message.
$38.25 USD in 14 days
5.0 (38 reviews)
4.1
4.1
3 freelancers are bidding on average $23 USD for this job
User Avatar
See private message.
$5.95 USD in 14 days
4.9 (3 reviews)
0.0
0.0
User Avatar
See private message.
$25.50 USD in 14 days
0.0 (1 review)
0.9
0.9

About the client

Flag of AUSTRALIA
Sydney, Australia
5.0
781
Payment method verified
Member since Apr 9, 2002

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.