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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.