Comment Comment by misframer I like how they set the price: $(function() { var price = localStorage.getItem('price'); if(!price) { price = Math.ceil(Math.random() * 3); localStorage.setItem('price', price); } $('#price').html(price); }); parent misframer 12 years ago