Need help fixing my Spawn time randomiser, currently it spawn things at regularly at its minimum spawn time

You are rolling a 1 in 4 chance every frame. The randomness should be working correctly, but if let’s say the game is running at 60 frames per second, the 1 in 4 odds every frame means that mathemetically the object is going to be spawning a couple frames after the minimum time, which will seem instantaneous to you.

Instead of doing a roll to spawn every frame, I would generate a random spawning time once before each spawn, and then spawn the object when that time is reached. Either that or the rolls need to happen say once per second, not once per frame.