How to select a make a random selection in a chemical spreadsheet.

23 views
Skip to first unread message

Andrew Orry

unread,
Jan 10, 2022, 1:01:42 PM1/10/22
to MolSoft ICM Knowledge Base
Q. How to select a make a random selection in a chemical spreadsheet.
A.
For table called 't'

s_tab = "t"   # enter table name here

find table $s_tab select index=Random(1 Nof( $s_tab ) Nof( $s_tab )/2 )   # will select ~half of random rows in the table


Reply all
Reply to author
Forward
0 new messages