Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: berty1970
  • Order by date
  1. berty1970

    Question for the math genius' here :)

    start by calling Range := 100; Random(range); Each value will be in the range 0..100 Disgard totals > 100 e.g random genarate 60,10,20 and 2 = 92 difference is 8 / 4 = 2 gives 62,12,22 and 4 = 100 As the game progesses reduce the value of range towards 25. and apply the addition. e.g 5,2,8,5...
  2. berty1970

    Question for the math genius' here :)

    Bobba I would do a loop (or call the function recursivly) that keeps calling random 4 times to get the 4 values, you can make random work within a range. Add the 4 results together on each itteration, if the results are greater than 100 disgard them. If less subatract the total from 100...
  3. berty1970

    StringGrid Row Coloring

    Steves unavalible at present but he asked me to post this on his behalf.. Generaly I would agree with Zathras, so the missing Row/Col value thing was a delphi bug intresting. Heres how to do it with objects. In fact when I dug this out it does do more than just set the colour as you can see...

Part and Inventory Search

Back
Top