randomlcg.java

来自「java实现的遗传算法」· Java 代码 · 共 15 行

JAVA
15
字号
package org.jgap.util;

/**
    Implementation of a <b>randomX</b>-compliant class using the
    simple (and not very good) <tt>rand()</tt> linear congruential
    generator given as an example in the ANSI C specification.  This
    is intended not for serious use, merely as an illustration of a
    simple software-based <b>randomX</b> generator.

    <p>
    The generation algorithm is:

    <p>
    <center>
        <em>I<sub>j+1</sub></em> = (<em>I<sub>j</sub></em> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?