From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Dec 31 2020 - 10:49:49 CST

That's what I'd do...
You can just make a selection that includes everything except what you
want, and then save out the modified structure to file(s).

Best,
  John Stone

On Thu, Dec 31, 2020 at 02:20:08PM +1300, Daniel Fellner wrote:
> I don't know of any specific commands that can do this but you could
> generate a random list of 20 numbers within the residue ID range to pipe
> into atomselect, and delete those.
>
> On Thu, 31 Dec 2020, 11:23 am Tiglath Moradkhan,
> <[1]moradkhantig_at_gmail.com> wrote:
>
> Dear VMD community
> I've generated a disc containing 252 lipid molecules (POPC) and I would
> like to randomly delete 20 POPC molecules before using MD to build a
> lipoprotein particle. Does the atomselect command work here? I've taken
> a look at how this command works but the examples that I've seen show
> how to select specific amino acid residues. Is there another command
> that could be used for random deletions?
> Thanks
> Tiglath
>
> References
>
> Visible links
> 1. mailto:moradkhantig_at_gmail.com

-- 
NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/