Please show me your entire class. I need to see exactly what you're trying to do.

using Microsoft.Xna.Framework.Graphics;

using Terraria;

using Terraria.ModLoader;

namespace collectingcards.Tiles.trees

{

public class loottreerainbow : ModTree

{

private Mod mod

{

get

{

return ModLoader.GetMod("collectingcards");

}

}

public override int CreateDust()

{

return mod.DustType("lootspark1");

}

public override int GrowthFXGore()

{

return mod.GetGoreSlot("Gores/geotreeFX");

}

public override int DropWood()

{

int f = Main.rand.Next(0, 10);

if(f >= 0 && f <= 0)

{

return mod.ItemType("lootblock1blue");

}

else if(f >= 1 && f <= 1)

{

return mod.ItemType("lootblock2green");

}

else if(f >= 2 && f <= 2)

{

return mod.ItemType("lootblock3red");

}

else if(f >= 3 && f <= 3)

{

return mod.ItemType("lootblock4yellow");

}

else if(f >= 4 && f <= 4)

{

return mod.ItemType("lootblock5orange");

}

else if(f >= 5 && f <= 5)

{

return mod.ItemType("lootblock6purple");

}

else if(f >= 6 && f <= 6)

{

return mod.ItemType("lootblock7white");

}

else if(f >= 7 && f <= 7)

{

return mod.ItemType("lootblock8limegreen");

}

else if(f >= 8 && f <= 8)

{

return mod.ItemType("lootblock9gray");

}

else if(f >= 9 && f <= 9)

{

return mod.ItemType("lootblock910magenta");

}

else

{

return mod.ItemType("lootblock1blue");

}

}

public override Texture2D GetTexture()

{

int f = Main.rand.Next(0, 10);

if(f >= 0 && f <= 0)

{

return mod.GetTexture("Tiles/trees/loottree1");

}

else if(f >= 1 && f <= 1)

{

return mod.GetTexture("Tiles/trees/loottree2");

}

else if(f >= 2 && f <= 2)

{

return mod.GetTexture("Tiles/trees/loottree3");

}

else if(f >= 3 && f <= 3)

{

return mod.GetTexture("Tiles/trees/loottree4");

}

else if(f >= 4 && f <= 4)

{

return mod.GetTexture("Tiles/trees/loottree5");

}

else if(f >= 5 && f <= 5)

{

return mod.GetTexture("Tiles/trees/loottree6");

}

else if(f >= 6 && f <= 6)

{

return mod.GetTexture("Tiles/trees/loottree7");

}

else if(f >= 7 && f <= 7)

{

return mod.GetTexture("Tiles/trees/loottree8");

}

else if(f >= 8 && f <= 8)

{

return mod.GetTexture("Tiles/trees/loottree9");

}

else if(f >= 9 && f <= 9)

{

return mod.GetTexture("Tiles/trees/loottree910");

}

else

{

return mod.GetTexture("Tiles/trees/loottree1");

}

}

public override Texture2D GetTopTextures()

{

return mod.GetTexture("Tiles/trees/loottree_top");

}

public override Texture2D GetBranchTextures()

{

return mod.GetTexture("Tiles/trees/loottree_leaves");

}

}

}

again the way i use the numbers is just testing (f >= 9 && f <= 9)

i want it to just pick one number and stick with it per tree and not per tick