7stud
01-24-2005, 09:16 PM
After fukchai2000 wasted everyone's time in the javascript forum asking about math.random(), this was his response after about 10 other users posted helpful answers:
unfortunately....i dont really understand either javascript or HTML.....and the reason why i post it in JAVA forum.....because i think that java have this MATH function......(correct me if i'm wrong....)...
ok...here what i trying to do: (sorry for didn't post it in the begining)
public class roll{
public static void main(String args[]){
int face;
for (int i=0;i<6;i++)
{
face = (int)(Math.random()*6)+1;
System.out.println(face);
}
}
unfortunately....i dont really understand either javascript or HTML.....and the reason why i post it in JAVA forum.....because i think that java have this MATH function......(correct me if i'm wrong....)...
ok...here what i trying to do: (sorry for didn't post it in the begining)
public class roll{
public static void main(String args[]){
int face;
for (int i=0;i<6;i++)
{
face = (int)(Math.random()*6)+1;
System.out.println(face);
}
}