fix #3. now random is working.