Advertisement
dhniceday

Untitled

Nov 22nd, 2022
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.26 KB | Software | 0 0
  1. ```dataviewjs
  2. function getRandomInt(max) {
  3.   return Math.floor(Math.random(5000) * max);
  4. }
  5.  
  6. const width = 400;
  7. const height = 300;
  8. const rnd = getRandomInt(500)
  9.  
  10. dv.span('<img src="https://picsum.photos/' + width + '/' + height+ '?random=' + rnd + '">')
  11. ```
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement