@JacobRogers/

textGen

JavaScript

a text genr8r

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function genNum(num){
	return Math.floor((Math.random() * num) + 1);
};
function chooseFromList(list){
	var len= list.length;
	var randNum=genNum(len)
	return list[randNum-1];
};
function genLetterOrNumber(){
	var alphabet=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," ","1","2","3","4","5","6","7","8","9","0"]
	return chooseFromList(alphabet)
}
function genArrayAlphaNurmeral(len){
	var arr=[]
	for(var i=0;i<len;i++){
		var num6=genLetterOrNumber();
		arr.push(num6)
	}
	return arr;
}
function genStringAN(len){
	return genArrayAlphaNurmeral(len).join("")
}
function genArrayAlpha(len,lenText){
	var arr=[]
	for(var i=0;i<len;i++){
		var num6=genStringAN(lenText);
		arr.push(num6)
	}
	return arr;
}
genArrayAlphaNurmeral(999999).join("")
Native Browser JavaScript