html:
<div></div> css:
div { width: 5px; height: 5px; background: #fff; } js:
for(var i=0; i<10; i++) { $('body').append('<div>');} // тут код для рандомной позиции } It is necessary to make each block a random position from the beginning of the site (top, left);