mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
provide a get_random_numeric()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6934 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
04fe090ce5
commit
aec026dd2e
@ -127,5 +127,7 @@ gchar* get_random_string_without(const char *exclude_chars);
|
|||||||
gint64 get_random_gint64(void);
|
gint64 get_random_gint64(void);
|
||||||
double get_random_double(void);
|
double get_random_double(void);
|
||||||
const char* get_random_string_in_array(const char* str_list[]);
|
const char* get_random_string_in_array(const char* str_list[]);
|
||||||
|
#define get_random_numeric() (double_to_gnc_numeric (get_random_double (), \
|
||||||
|
GNC_DENOM_AUTO, GNC_RND_ROUND))
|
||||||
|
|
||||||
#endif /* TEST_STUFF_H */
|
#endif /* TEST_STUFF_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user