Molecular dynamics simulations of liquid and glassy selenium have been carried out using density functional (400-773 K, 600 atoms) and classical force field (290-500 K, 5488 atoms) methods. Structural features (structure factors, pair distribution functions, bond lengths, bond and dihedral angles, cavities) and dynamical properties (diffusion coefficients, power spectra, sound velocity, collective excitations, bond lifetimes) agree well with experimental data where available. The structures are predominantly chainlike, with a small fraction of rings with a range of sizes, and large cavity volumes lead to flexible chains. It is striking that the density functional simulations show very few Se 8 rings at 600 K and below.