Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating the High and Low of it all
#6
That's more to the point, as Dim didn't ask for them to be ranked, just pick out the lowest and the highest.

If you don't want to seed it, just do...

Code: (Select All)
FOR i = 1 TO 100
    HL = RND
    IF HL < low OR i = 1 THEN low = HL
    low = (_ROUND(low * 100000)) / 100000
    IF HL > high OR i = 1 THEN high = HL
    high = (_ROUND(high * 100000)) / 100000
NEXT
PRINT low, high
Reply


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

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

Forum Jump:


Users browsing this thread: 1 Guest(s)