Java Random random_g729()

Here you can find the source of random_g729()

Description

Return random short.

License

LGPL

Return

random short

Declaration

static short random_g729() 

Method Source Code

//package com.java2s;
/*/*from  w ww . ja  v  a2  s  .c  o  m*/
 * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

public class Main {
    private static short seed = 21845;

    /**
     * Return random short.
     *
     * @return random short
     */
    static short random_g729() {
        seed = (short) (seed * 31821L + 13849L);

        return (seed);
    }
}

Related

  1. random(float theStart, float theEnd)
  2. random(int min, int max)
  3. random(List list, Random random)
  4. random4DigitNumber()
  5. random_g729()
  6. randomAgain()
  7. randomAlpha()
  8. randomAlternate(char c)
  9. randomCharacterVector(int size)