php - Alternative ways for generating a random number in Fat-Free Framework -


i have following f3 htm snippet.

<repeat group="{{ @rooms }}" value="{{ @room }}">   <div class="col row m12 cell white card-panel">      <div class="col m4 destination valign-wrapper">       <h4 class="valign">{{ @room }}</h4>     </div>      <div class="col m8 call-number valign-wrapper">        <h1 class="valign value">{{ rand(1,9).rand(0,9).rand(0,9).rand(0,9) }}</h1>     </div>   </div> </repeat> 

to produce four-digit random number, generating , concatenating 4 randomly generated single digit numbers. while work fine, it's not pretty at. there better way this? looking alternative ways preferably using f3, not native php.


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -