Generating random solution without conditions