random instance gnerator