stock and random genreate graph