Changed Random spawn func.