Kod
<!-- sktyp losuuje 2 liczby a i b 50-200 i te liczby są wyokością i szerokością -->
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<style>
/* Dorób flexa szujo */
</style>
</head>
<body>
<div>
<img src="https://picsum.photos/200">
</div>
<div>
<img src="https://picsum.photos/200">
</div>
<div>
<img src="https://picsum.photos/200">
</div>
<div>
<img src="https://picsum.photos/200">
</div>
<script>
setInterval(() => {
y = document.getElementsByTagName("img")
// lenght ez
for (let i = 0; i<y.length; i++){
let a = Math.round(Math.random()*150 + 50)
let b = Math.round(Math.random()*150 + 50)
y[i].width=a
y[i].height=b
}
},500)
</script>
</body>
</html>