i have a for loop and inside i have some code. i want to run this code random. i was thinking of using a if statment.
for(int i = 0; i < 50; i++)
{
if(ran.nextInt(50) > 50/2){
//code
}
}
but i want it so its even more random. any idea?