Demonstrate how to pick a random element from a list.




list l;
 
l_append(l, 'a');
l_append(l, 'b');
l_append(l, 'c');
l_append(l, 'd');
l_append(l, 'e');
l_append(l, 'f');
 
o_byte(l[drand(5)]);
o_byte('\n');