What are the best tips for saving money as a university student?

I will be attending university this coming semester and am planning on maintaining a sustainable financial situation right now, but would like any good tips or suggestions to saving money as a student.


Question: How to generate 4 unique digit each time form 1 to 12
Answer: In javascript

random: function (min,max,l){
            var arr = [],m = [],n = 0;
            if (max - min &lt; l-1) return;
            for (var i=0; i&lt;=(max-min); i++)m[i] = i + min;
            for (var i=0; i&lt;l; i++) {n = Math.floor(Math.random()*(m.length)); arr[i]=m.splice(n,1);};
            return arr;
        }