Working version with randomly generated prices