finised random simulation