fractplot.java

0 0 0
                                    

import java.util.*;import java.lang.*;

public class fractplot{ public static void main(String[]args){

// input your own fractal function, or have the computer give u a random one!

String[]str1={"c","z","e","x","y","zi","p"};String[]str2={"+","-","*","/","%","^","&","~","|"};

int a=0;int b=0;int n=0;double e=2.72;double p=1.62;double step=0.01;
double[][]x=new double[8][8];double[][]y=new double[8][8];double[][]z=new double[8][8];
double[][]zi=new double[8][8];double[][]c=new double[8][8];

Random rand=new Random();

for(a=0;a<8;a++){for(b=0;b<8;b++){
x[a][b]=rand.nextDouble(10);y[a][b]=rand.nextDouble(10);z[a][b]=rand.nextDouble(10);
zi[a][b]=rand.nextDouble(10);c[a][b]=rand.nextDouble(10);

}}

for(n=0;n<15;n++){int n2=n%2;int result1=rand.nextInt(str1.length);int result2=rand.nextInt(str2.length);
if(n2==0){System.out.print(str1[result1]);}else{System.out.print(str2[result2]);}}


  
}}

My Prog AdventuresWhere stories live. Discover now