How to config a component? Noob question

Hello, I want to use [color="#00BFFF"]Randomness [/color] component in my project but can’t configure it. When I am doing


$ss = Yii::app()->Randomness->randomString(32);

this in actionIndex() it throws me an error




include(COM.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory



I put this in my main.php configuration file




'components'=>array(

      'Randomness'=>array('class'=>'Randomness'),

      [......]

),



so, can you help me, please?

the randomness method "randomString" is a static method

i think it should be

this way




     Yii::app()->Randomness::randomString(34); 

  

NOte: i have not tested this.

cheers.

Thank you for answer but now I am getting this error




Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /protected/controllers/SiteController.php on line 32