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.
b = b + ...
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



Users browsing this thread: 5 Guest(s)