Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calling random number generator  RSS feed

 
satyam gupt
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hellow friends
I am making a game in which i want to call random fuction.how can i do this? please help me
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24216
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Java beginner's forum.
 
Stuart Chambers
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to generate a random number take alook at the following link:
http://www.javaranch.com/maha/Resources/gotchas_1_.html#RANDOM
This should contain all the info you need.
PS. This is my first posting, I hope it was useful.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!