option to select random key or static key