simple random generation of a solution