for (i = 0; i < euc->shopping_cart_data.sc_size; i++)
if (euc->shopping_cart_data.sc_size==1) euc->shopping_cart_data.scl_data[0].scl_qty=get_random(10)+1;  else
int prepare_shopping_cart(struct eu_context_t *euc){	euc->shopping_cart_data.sc_id = euc->sc_id;	euc->shopping_cart_data.c_id = euc->c_id;	/*	 * Determine the course of action depending on what the previous	 * interaction was.	 */	if (euc->previous_interaction != PRODUCT_DETAIL)	{		/* Generally, a user goes to the shopping cart to view it. */		euc->shopping_cart_data.add_flag = FALSE;	}	else if (euc->previous_interaction == SHOPPING_CART)	{		int i;		/*		 * If the previous interaction was Shopping Cart then the user must		 * be updating the quantity of items in the shopping cart.  Update		 * the quantity for each item to update the shopping cart.		 */		euc->shopping_cart_data.add_flag = FALSE;		/*		 * Basing the new scl_qty on Clause 4.7.1 for ol_qty but I'm not sure		 * if this is correct...		 */		for (i = 0; i < euc->shopping_cart_data.sc_size; i++)		{			euc->shopping_cart_data.scl_data[i].scl_qty = get_random(301);		}	}	else	{		/*		 * If the previous interaction was Product Detail, then the user must		 * be adding an item into the shopping cart.		 */		euc->shopping_cart_data.add_flag = TRUE;		euc->shopping_cart_data.i_id = euc->product_detail_data.i_id;	}	return W_OK;}