function random = ex811a()

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% function random = ex811a()
%%
%% By Kittiphan Techakittiroj (17 Mar 1996)
%%
%% Ex 8.11a Distributed Random Number (3*x^2)/2
%%
%% random       The random number
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

x = rand;
random = sign(2*(x-0.5))*abs((2*(x-0.5)))^(1/3);
