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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -