Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,097 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,838 people online right now. Registration is fast and FREE... Join Now!




Smart Choice Algorythm

 
Reply to this topicStart new topic

Smart Choice Algorythm, More likely to choose an item with a higher value.

dawmail333
22 Apr, 2008 - 02:17 AM
Post #1

D.I.C Head
Group Icon

Joined: 2 Jul, 2007
Posts: 52


Dream Kudos: 100
My Contributions
Hi.

I've got a particular type of class,
CODE
Public Class Word
This particular class has a
CODE
Public ReadOnly Property Value
I change the value through subs, but that's beside the point. Each of the classes start with a value of 5, and then either increase or decrease (by decimal values). I want to make it so that Words with a higher value are more likely to be chosen. The function needs to return the chosen Word, and also where that word is in the larger collection (an IBindingList), so I can change the value of it after I have worked with it.

Hope I'm clear enough.

This post has been edited by dawmail333: 22 Apr, 2008 - 02:18 AM
User is offlineProfile CardPM
+Quote Post

dawmail333
RE: Smart Choice Algorythm
24 Apr, 2008 - 02:50 AM
Post #2

D.I.C Head
Group Icon

Joined: 2 Jul, 2007
Posts: 52


Dream Kudos: 100
My Contributions
Is there no-one willing to help me?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 12:22AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month