#Matlab 
This function creates a `n x n` matrix of random numbers (between 0 and 1) and then returns the number of elements. 

    g=@(n)numel(rand(n));