#include
#include
#include
#include
using namespace std;
int main (){
list l (10);
generate_n (l.begin (), 5, rand);
cout << "Elements in the list of size: " << l.size ();
list ::const_iterator li;
for ( li = l.begin (); li != l.end (); ++ li )
cout << *li << ' ';
return 0;
}