Recently, Rayleigh distribution has received considerable attention in the statistical literature. In this paper, we consider the point and interval estimation of the functions of the unknown parameters of a two-parameter Rayleigh distribution. First, we obtain the maximum likelihood estimators (MLEs) of the unknown parameters. The MLEs cannot be obtained in explicit forms, and we propose to use the maximization of the profile log-likelihood function to compute the MLEs. We further consider the Bayesian inference of the unknown parameters.The Bayes estimates and the associated credible intervals cannot be obtained in closed forms.We use the importance sampling technique to approximate (compute) the Bayes estimates and the associated credible intervals. For comparison purposes we have also used the exact method to compute the Bayes estimates and the corresponding credible intervals. Monte Carlo simulations are performed to compare the performances of the proposed method, and one data set has been analyzed for illustrative purposes. We further consider the Bayes prediction problem based on the observed samples, and provide the appropriate predictive intervals. A data example has been provided for illustrative purposes.