Is there any method in java to generate random number (integer, byte or float) ?
Please tell me if any i need it in my program.

If possible please give full example.

Thanks!

The Random class in the standard Java API has all you need. Just Google it.