Chain polymer ensembles by computer simulation