Factored random cell generation into its own method.