Your SELECT statement is doing exactly what you asked it to, and it doesn't actually make much sense.
SELECT * FROM tbltab order by RAND() limit 0,$nod
First, the statement LIMIT 0,$nod means that it will read $nod records from the beginning of the database (that's what the 0 in the limit statement means).
Second, you don't ORDER BY a random number, you order by a field name... I am surprised this query even executes.
If you are trying to get some random number of records into the database then
$startrow = RAND(); // or RAND(1,65536)
SELECT * FROM tbltab
LIMIT $startrow, $nod