Java Random getRandomRequestId(Integer serviceId)

Here you can find the source of getRandomRequestId(Integer serviceId)

Description

get Random Request Id

License

Apache License

Declaration

private static Long getRandomRequestId(Integer serviceId) 

Method Source Code

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

import java.util.*;

public class Main {
    private static Integer[] response_code = new Integer[] { 100, 200, 300, 400, 500 };

    private static Long getRandomRequestId(Integer serviceId) {
        Random r = new Random();
        int index = r.nextInt(response_code.length);
        return 1L;
    }/*  ww w.j a v a  2 s.  com*/
}

Related

  1. getRandomFileName()
  2. getRandomFloat()
  3. getRandomFloatArray()
  4. getRandomObject()
  5. getRandomPort(int low, int high)
  6. getRandomServices(int maxSize)
  7. getRandomUUID()
  8. isRandomList(List list)
  9. medianHelper(List list, int k, Random r)