diff --git a/etk/tool.cpp b/etk/tool.cpp index 7bd7bda..4cc3f5f 100644 --- a/etk/tool.cpp +++ b/etk/tool.cpp @@ -25,6 +25,26 @@ int32_t etk::tool::irand(int32_t a, int32_t b) return (int32_t)(( rand()/(float)RAND_MAX ) * ((float)b-(float)a) + (float)a); } +void etk::tool::frandTable(float a, float b, int32_t size, float* table) +{ + if (NULL==table) { + return; + } + for(int32_t iii=0; iii &m_listDirectory) { diff --git a/etk/tool.h b/etk/tool.h index 98bf779..66fd135 100644 --- a/etk/tool.h +++ b/etk/tool.h @@ -16,9 +16,13 @@ namespace etk { namespace tool { float frand(float a, float b); int32_t irand(int32_t a, int32_t b); + void frandTable(float a, float b, int32_t size, float* table); + void irandTable(int32_t a, int32_t b, int32_t size, int32_t* table); + void SortList(etk::Vector &m_listDirectory); bool strnCmpNoCase(const char * input1, const char * input2, int32_t maxLen); etk::UString SimplifyPath(etk::UString input); + }; };