basic pseudorandom placement logic