ulfben icon

Random (android game dev)

ulfben | PRO | 02/26/18 03:31:33 PM UTC | 0 ⭐ | 1237 👁️ | Never ⏰ | []
Java |

610 B

|

None

|

0 👍

/

0 👎

public class Random {
    private final static java.util.Random RNG = new java.util.Random();
    private Random(){super();}
 
    public static boolean coinFlip(){
        return RNG.nextFloat() > 0.5;
    }
 
    public static float nextFloat(){
        return RNG.nextFloat();
    }
 
    public static int nextInt(final int max){
        return RNG.nextInt(max);
    }
 
    public static int between(final int min, final int max){
        return RNG.nextInt(max-min)+min;
    }
 
    public static float between(final float min, final float max){
        return min+RNG.nextFloat()*(max-min);
    }
}

Comments

  • Gyqizv icon
    04/02/26 06:18:41 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.@xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400
     Remove the @ 
  • Yuizcko icon
    05/18/26 01:10:07 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400