Multilinear polynomial is a multivariate polynomial where the exponent is zero or one. My instructor suggests to test my non-negativity algorithm with "random multilinear functions" which I call at the best red herring unless specifying the meaning of "random". Suppose you need to test your algorithm working with multilinear functions.
On which kind of "random" polynomials should a non-negativity algorithm be tested against?
Multilinear polynomials are in a 1-1 correspondence with linear maps into $\mathbb{R}$, specifically
$$\sum_{i_m \in\{0,1\}} a_{i_1 \cdots i_n} x^{i_1} \cdots x^{i_n}$$
is isomorphic to a linear map $\mathbb{R}^{2^n} \to \mathbb{R}$, which can be specified with $2^n$ numbers. So you could generate a random linear map by generating $2^n$ random numbers, and map that to a multilinear polynomial.
Edit Here's an example of how to reproducably generate random numbers in Matlab:
Note that the same random numbers are generated each time.