Tag Archive

amateur astronomy awk bash b[e] supergiant cartoon conference convert evolved star exoplanet fedora figaro fits fun galaxy iraf large magellanic cloud latex linux lmc machine learning magellanic clouds massive star matplotlib meteor mypaper paper peblo photometry planet pro-am pyraf python red supergiant scisoft skinakas observatory small magellanic cloud smc spectroscopy starlink talk ubuntu university of crete video x-ray yellow hypergiant

Fast note on shuffling a list with Perl

Used in a Perl script so I noted now because I will totally forget how to use it!

use List::Util qw(shuffle)
my @coef = (-2..2);
my @random_coef = shuffle @coef;

Thanks to Alexandros M. for this tip!