code: def rand_k(k):
      """Returns an integer float number between [0, k - 1]."""
      return int(rand() * k)
  
file_path: PaddleHub/modules/text/language_model/slda_webpage/util.py
imports: import time
  import yaml
  import numpy
  from paddlehub.common.logger import logger
  from slda_webpage.config import ModelType
label_desc: Use image node_id 4 for calling a global function with example usage: rand_k(k) and returns: int