Random range only returning zero

Can’t seem to get any values for random range, just zeros.

#pragma strict
var mazesize= 50;
var solidfloorperc=75;// are the holes in floors?
var solidwallperc=75;// are the holes in walls?
var numofroms=2;
var offset=1.0;//size of blocks
var roomlength=15;
var floorblock1=transform;
var numoffinfloors=0;
var bump=0;

var a=0;
function Start () {
buildfloors();
}
//-----------------------------------------------------------------
function Update () {

if (a==0){

//buildwalls();
a=1;

}
}
//----------------------------------------------------------------
function buildfloors(){

for (var ii=0; ii

ok, i found it, it was that I initialized a value to an int, but asked random for a float… then tried to store the float in the int.