function nieuwGetal(){
	var g = Math.random()*50;
	g = Math.round(g);
	return g;
var getal = nieuwGetal();
this should return a new random number between 1 - 50 every time the function is called. It generates a new number but the number in "getal" stays the same. Any idea why this is and how I can make it behave differently?