Java Random Int randomActorId(int max)

Here you can find the source of randomActorId(int max)

Description

random Actor Id

License

Apache License

Declaration

public static final int randomActorId(int max) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final int randomActorId(int max) {
        int min = 0;
        return randomNumber(min, max);
    }//from   w w  w . j a va2s  . c  o m

    public static final int randomNumber(int min, int max) {
        int num = min + (int) (Math.random() * ((max - min) + 1));
        return num;
    }
}

Related

  1. random(int start, int end)
  2. random(int theRange)
  3. random(int x)
  4. random(int... array)
  5. random_range(int x1, int x2)
  6. randomAlphaNum(int length)
  7. randomAlphanumeric(int count)
  8. randomAlphanumericString(int length)
  9. randomAlphaString(int length)