Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using pseudo-random numbers for repeatable content - kind of a neat trick
#2
I did that for tracking fireworks trails so I didn't have to array all that data between loops. see fireworks through the years.
https://qb64phoenix.com/forum/showthread...8#pid26448

Code: (Select All)
Type rocket
    x As Single
    y As Single
    bang As Single
    seed As Integer
    age As Integer
    fini As Integer
    r As Integer
    c As _Unsigned Long
End Type

The seed was for a number to Randomize each time for that rocket.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: using pseudo-random numbers for repeatable content - kind of a neat trick - by bplus - 02-13-2025, 04:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strings - Numbers Kernelpanic 0 114 01-20-2026, 10:29 PM
Last Post: Kernelpanic
  Random Numbers PhilOfPerth 16 1,770 10-19-2025, 10:26 PM
Last Post: Pete
  random numbers badger 8 1,394 11-08-2024, 02:22 AM
Last Post: DANILIN
  Identifying colour attributes with negative numbers CharlieJV 1 577 01-28-2023, 05:16 AM
Last Post: CharlieJV
  BASIC's Comparison Matrix: ideas for content? CharlieJV 28 6,665 10-03-2022, 01:27 AM
Last Post: CharlieJV

Forum Jump:


Users browsing this thread: 1 Guest(s)