And you wouldn't be able to write an excel document, only save the data in a tab delimited plain text file.
void main() {
string [int] bob;
string randtxt;
int rndln;
int rndind;
for x from 0 to 25 {
rndln = random(8) + 3;
randtxt = "";
for s from 0 to rndln {
rndind = random(26);
randtxt = randtxt + substring("abcdefghijklmnopqrstuvwxyz", rndind, rndind+1);
}
bob[x] = randtxt;
}
map_to_file(bob,"testing.xls");
}
//Purchase item return average price
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
int PurchaseItem(int howmany, item IT)
{
int startmeat=my_meat();
buy( howmany, IT );
int endmeat=my_meat();
int itemcost=(startmeat-endmeat)/howmany;
return itemcost;
}