Examples of Random

Examples of ca.eandb.jmist.framework.Random


  public void castPhotons(long n, ProgressMonitor monitor, long progressInterval) {

    long untilCallback = 0;
    Random rng = new SimpleRandom();

    for (int i = 0; i < n; i++) {

      if (--untilCallback <= 0) {
View Full Code Here

Examples of com.asakusafw.compiler.flow.testing.operator.ExOperatorFactory.Random

    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Random rand = f.random(in);
        Cogroup cog1 = f.cogroup(rand.out, core.empty(Ex2.class));
        Cogroup cog2 = f.cogroup(rand.out, core.empty(Ex2.class));
View Full Code Here

Examples of com.killruana.zcraft.random.Random

        System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
        setupPermissions(); // fonction pour les permissions

        // Module Random
        getCommand("dice").setExecutor(new Dice(this));
        getCommand("random").setExecutor(new Random(this));

        // Module Administration
        getCommand("inv").setExecutor(new InvPluginCommand(this));
        getCommand("hax").setExecutor(new HaxPluginCommand(this));
        getCommand("chuck").setExecutor(new ChuckPluginCommand(this));
View Full Code Here

Examples of com.rapidminer.utils.Random

    /// <param name="mean">the mean of the normal distribution drawn from</param>
    /// <param name="stdev">the standard deviation of the normal distribution</param>
    /// <param name="row">the row to be initialized</param>
    static public void RowInitNormal(Matrix matrix, double mean, double stdev, int row)
      Random rnd = Random.GetInstance();
      for (int j = 0; j < matrix.dim2; j++)
        matrix.setLocation(row, j,  rnd.NextNormal(mean, stdev));
View Full Code Here

Examples of com.securityinnovation.jNeo.Random

        throws NtruException
        for (OID oid : OID.values())
            NtruEncryptTestVector test  = findTest(oid);
            Random prng = new Random(test.keygenSeed);
            NtruEncryptKey keys = NtruEncryptKey.genKey(oid, prng);
            assertArrayEquals(getPrivKeyBlob(test), keys.getPrivKey());
View Full Code Here

Examples of com.sun.faban.driver.util.Random

        char[] readBuffer = new char[8192];
        int readSize;
        while ((readSize = reader.read(readBuffer, 0, readBuffer.length))
                != -1)
            page.append(readBuffer, 0, readSize);
        Random r = new Random();
        String selected = randomEvent(r, page);
        System.out.println("Selected: " + selected);
View Full Code Here

Examples of com.twitter.common.util.Random

      int jitterWindowMs,
      boolean shouldThrow) {

    int randomValue = 123;

    Random mockRandom = control.createMock(Random.class);

    if (!shouldThrow) {


View Full Code Here

Examples of java.util.Random

  protected void setUUID(AbstractMetadataRecord record) {
        byte[] randomBytes = new byte[8];
        if (random == null) {
          random = new Random(2010);
        randomBytes[6&= 0x0f/* clear version        */
        randomBytes[6|= 0x40/* set to version 4     */
        long msb = new BigInteger(randomBytes).longValue();
View Full Code Here

Examples of java.util.Random

    throws Exception {
    double evalMetric = 0;
    double[] repError = new double[5];
    int numAttributes = 0;
    int i, j;
    Random Rnd = new Random(m_seed);
    Remove delTransform = new Remove();
    // copy the instances
    Instances trainCopy = new Instances(m_trainInstances);
View Full Code Here

Examples of java.util.Random

    public synchronized static boolean acquireLock(FileSystemManager fsManager, FileObject fo) {
        // generate a random lock value to ensure that there are no two parties
        // processing the same file
        Random random = new Random();
        byte[] lockValue = String.valueOf(random.nextLong()).getBytes();
        try {
            // check whether there is an existing lock for this item, if so it is assumed
            // to be processed by an another listener (downloading) or a sender (uploading)
            // lock file is derived by attaching the ".lock" second extension to the file name
View Full Code Here
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.