PDA

View Full Version : Randomise


NzGamers
06-27-2010, 02:22
How do i make it randomise from this

new const sz_ShopItems[][] =
{
"Item 1",
"Item 2",
"Item 2"
};

i want it to random these Item.

normally i can just do


switch (random_num(1, 3))
{
case 1:
{

wrecked_
06-27-2010, 02:24
sz_ShopItems[random(sizeof sz_ShopItems)]