Posted By

ottoman153 on 12/27/11


Tagged

random


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ottoman153


Random


 / Published in: Java
 

genereer een random cijfer: Math.random = cijfer tussen 0 - 1 maal 5 => 0-1-2-3-4

  1. int randomNumber = (int)(Math.random() * 5 );

Report this snippet  

You need to login to post a comment.