DEV Community

Discussion on: Using the Unsplash API to Display Random Images

Collapse
bradleycollins profile image
Bradley Collins

My only issue with Picsum is that it pulls the same image in each place I am using it. I was hoping it would display a random one each time :(

fillmurray is great, never seen it before, makes me want to do the same! I think my favorite part of the site though is that they use the Crazy Nic Cage pic for the favicon!

Thread Thread
nijikokun profile image
Nijiko Yonskai

Co-creator of picsum.photos here! 👋

You can actually have the image change by appending a cache-busting query string to the end:

<img src="https://picsum.photos/200/300?a" />

Here is a demonstration!

Thread Thread
bradleycollins profile image
Bradley Collins

Oh dang, nice! Thanks for the heads up!