Ok, im quite new to VB, im making a betting game (out of boredom) but ive got stuck at randomising a winning horse (horse betting) completely pointless i know, but im doing it to practise my skills what i learned in IT at college.
There is 7 horses to chose from in a drop down list, each with different odds (like in a real race) the player can chose the amount they bet providing they have the cash. Also all horses have names, e.g. horse 1, horse 2 etc.
Im stuck on the code to randomise a horse out of the 7 to win
then adding the winnings if they bet on that horse into their virtual account or taking out their losings if they lose.
So far, the player cannot win due to me not knowing how to randomise a winner. I know how to add and take away funds from the virtual accout
could someone help me out please, it would be appreciated