Revert "[3.0] Fix Svace issues"
[platform/core/uifw/dali-core.git] / dali / public-api / math / random.h
index ee9a012..5ba0c95 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_RANDOM_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 namespace Dali
 {
+/**
+ * @addtogroup dali_core_math
+ * @{
+ */
 
 /**
  * @brief Provides methods to generate and use random values.
+ * @SINCE_1_0.0
  */
 namespace Random
 {
@@ -34,8 +39,9 @@ namespace Random
  * @brief Returns a random number between f0 and f1.
  *
  * Note, uses a limited number of values.
- * @param[in] f0 the lower bound
- * @param[in] f1 the upper bound
+ * @SINCE_1_0.0
+ * @param[in] f0 The lower bound
+ * @param[in] f1 The upper bound
  * @return a random value between the lower and upper bound
  */
 inline float Range(float f0, float f1)
@@ -48,6 +54,7 @@ inline float Range(float f0, float f1)
 /**
  * @brief Function to return a normalized axis in a random direction.
  *
+ * @SINCE_1_0.0
  * @return the axis
  */
 inline Vector4 Axis()
@@ -66,19 +73,11 @@ inline Vector4 Axis()
   return axis;
 }
 
-/**
- * @brief Returns true if the value given is greater than a random value between 0 and 1.
- *
- * @param chance  A value between 0 and 1. [Default: 0.5]
- * @return        true if chance greater than the random value, otherwise false.
- */
-inline bool Chance(float chance = 0.5f)
-{
-  return chance > Range(0.0f, 1.0f);
-}
-
 } // namespace Random
 
+/**
+ * @}
+ */
 } // namespace Dali
 
 #endif // __DALI_RANDOM_H__