Efficient generation of transcriptomic profiles by random composite measurements