#include "web_api.h"
RandStr311()
{
int k;
int i;
#define MAX_STRING 80 + 1
char consonants[22] = {'a','b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z'};
//char SearchValue[max_strings];
char SearchValue[MAX_STRING]="";
//create random char with length between 3 ~11
k = rand()%8 + 4;
//lr_output_message("k=%d",k);
for (i=0;i
{
SearchValue[i] = consonants[rand() % 21];
}
SearchValue[k] = '�';
lr_save_string(SearchValue,"SearchValue");
return 0;
}
Action()
{
RandStr311();
lr_output_message("this is first value:%s",lr_eval_string("{SearchValue}"));
return 0;
}
|