<html>
<head>
<title>Véletlenszám generálás</title>
<script language="JavaScript">
function general(){
var n=document.urlap1.darab.value*1;
var tol=document.urlap1.induloertek.value*1;
var ig=document.urlap1.vegertek.value*1;
var t=new Array();
var str="";
alert(n);
for(i=0; i<n; i++){
t[i]=Math.floor(Math.random()*(ig-tol)+tol);
str=str+t[i]+"";
}
document.urlap1.szamok.value=str;
}
</script>
</head>
<body>
<p>
Generáltjunk N darab véletlen számot, egy bekért kezdő és végérték között, majd irassuk ki egy nagyobb szövegdobozba!
</p>
<form="urlap1">
Hány számot generáljunk?
<input type="text" name="darab" id="darab" value=""><br><br>
Add meg a véletlen számok kezdő értékét!
<input type="text" name="induloertek" id="induloertek" value=""><br><br>
Add meg a véletlen számok vég értékét!
<input type="text" name="vegertek" id="vegertek" value=""><br><br>
<input type="button" value="Generál" onClick="general()"><br><br>
<textarea name="szamok" id="szamok" cols="50" rows="10"></textarea>
</form>
</body>
</html>
{"text":"text","html5":"html","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"lua","bash":"sh","erlang":"erlang","go":"golang","c":"c_cpp","cpp":"c_cpp","diff":"diff","latex":"latex","sql":"sql","xml":"xml","0":"text","abap":"abap","actionscript":"actionscript","actionscript3":"actionscript","ada":"ada","apache":"apache_conf","applescript":"applescript","asm":"assembly_x86","autohotkey":"autohotkey","closure":"closure","cobol":"cobol","coffeescript":"coffee","cpp-winapi":"c_cpp","c_loadrunner":"c_cpp","c_mac":"c_cpp","c_winapi":"c_cpp","csharp":"csharp","d":"d","dart":"dart","dot":"dot","eiffel":"eiffel","fortran":"fortran","groovy":"groovy","haskell":"haskell","haxe":"haxe","ini":"ini","io":"io","java":"java","java5":"java","make":"makefile","matlab":"matlab","mysql":"mysql","objc":"objectivec","ocaml":"ocaml","pascal":"pascal","perl":"perl","perl6":"perl","postgresql":"pgsql","powershell":"powershell","prolog":"prolog","properties":"properties","rails":"ruby","rust":"rust","scala":"scala","scheme":"scheme","smarty":"smarty","tcl":"tcl","vala":"vala","vb":"vbscript","verilog":"verilog","vhdl":"vhdl","yaml":"yaml"}