Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating the High and Low of it all
#5
simply start with really low high and really high low , rnd is always < 1 so for example only
Code: (Select All)
high = -100000
low = 10
For i = 1 To 100
    HL = Rnd
    If HL < low Then low = HL
    low = (_Round(low * 100000)) / 100000
    If HL > high Then high = HL
    high = (_Round(high * 100000)) / 100000
Next
Print low, high
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: Calculating the High and Low of it all - by bplus - 10-18-2022, 07:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question need help calculating ratios madscijr 9 1,569 02-14-2025, 06:06 PM
Last Post: madscijr
  Cursor is showing low in graphics screen PhilOfPerth 2 598 11-06-2024, 07:50 AM
Last Post: PhilOfPerth
  Potencies high potencies Kernelpanic 4 1,119 10-08-2024, 01:34 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: 1 Guest(s)