Is it possible to create blocks via script?

I wanna create a level which is based on blocks in a size of 100 * 100 blocks.
I want this level to be createt randomly through a sript.
I did it with map entities, and it worked. But now my question is , is it possible
to do the same with blocks, maybe there is a command simmilar to ent_create?

Thx