Problem with godot is that the randi function is not really random hahaha.
here's my random generator function from my one of my projects.
static func randomNumber():
#Author: Christian Quiel Panuncillo
#Description: Returns a random number based on seconds and the randi().
Using this would give you a perfect set of random numbers based on seconds. Convert your code that spawns bubble bullets into a single function argument with at least 1 function argument that accepts bullects, say:
And bullet:PackedScene passed variable is the prefabricated scenes for each type of bubble bullet. Inside the function you can instantiate the bullet as
After making the function make an array variable containing all the different bullets. Like:
var magazine = [ load("res://prefabs/yellowBall.tscn"),
After that call the function as:
The end result should allow you to randomly select a bubble type to shoot. Hope this helps you.