Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting a random number wihout RND.
#4
(09-30-2023, 11:19 PM)bplus Wrote:
(09-30-2023, 11:06 PM)Dav Wrote: Hmm, this works in older QB64 but I just tried it in QB84-PE and it's not working.  I should of tested it in that before posting .  Hang on and let me see if I can get it working in QB64-PE.

EDIT: Now it's working, had to add a _DELAY .25 at the beginning so _SCREENX/_SCREENY would be there.

- Dav

Your seed sucks (dont take it personal), just set it to Timer.

No delay needed.

Gosh - I could had sworn when I tried it that way I was getting patterns (I tested with PSET).  But, it does seems to be working with just timer.

EDIT: Oh I bet that was when I was putting seed=timer inside the function at first, which didn't work well.

- Dav

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
Getting a random number wihout RND. - by Dav - 09-30-2023, 11:01 PM
RE: Getting a random number wihout RND. - by Dav - 09-30-2023, 11:06 PM
RE: Getting a random number wihout RND. - by Dav - 09-30-2023, 11:27 PM
RE: Getting a random number wihout RND. - by Dav - 10-01-2023, 01:45 AM
RE: Getting a random number wihout RND. - by Pete - 07-17-2024, 07:00 PM
RE: Getting a random number wihout RND. - by Pete - 07-17-2024, 07:42 PM
RE: Getting a random number wihout RND. - by Pete - 07-17-2024, 09:00 PM
RE: Getting a random number wihout RND. - by Pete - 07-17-2024, 10:08 PM



Users browsing this thread: 2 Guest(s)