Подробнее
i Java - LCGRandNumberGen/src/LCGRandNumberGen.java - Eclipse JffJxJ File Edit Source Refactor Navigate Search Project Run Window Help q:\ o gm® evil's - Quick Access yj Java ^ Debug E) LCGRandNumberGen.java 23 //illustrated by Lj^ji-Senygiai public class LCGRandNumberGen { // Seed number ac X_[0] = (double) (110 //Linear Cor^r^uentljil Generator algor for (int i = 1; i < 100; i++) { //Pseudo-RNG k [i] = (a * X [i - 1] + c) % m; //Distributed Uniform X [i] = X [i] / m; //Output System.out.printIn("X_[" + i + "] = " + X_[i]); //Comment from NicQ-ch^n-ge^Ql System.out.println("See? That's how the LCG algorithm works."); System.ont.printIn("Now you have to generate random variables from those } > Writable Smart Insert public static void main(String[] args) { // T0D0 Auto-generated method stub //Value for each constant are decided randomly int a = 93519753, c = 91907765, m = 96691067; Double[] X_ = new Double [100]; «5 SE s * mo P ®
Anime,Аниме,Love Live!,School Idol Project, Love Live! School Idol Project,Yazawa Nico,Lulu-Chan92,Megane,очки,Anime,fandoms,love live!,yazawa nico,lulu-chan92,Anime Art,megane,Anime Unsorted,Anime Unsorted
Еще на тему
(это ж вроде из этого аниме)