diff --git a/docs/docs/transformers/system/random-float.mdx b/docs/docs/transformers/system/random-float.mdx new file mode 100644 index 0000000000..137072c354 --- /dev/null +++ b/docs/docs/transformers/system/random-float.mdx @@ -0,0 +1,93 @@ +--- +title: Random Float +id: random-float +hide_title: true +slug: /transformers/system/random-float +--- + +import { TransformerPageHeader } from '@site/src/CustomComponents/TransformerPageHeader.tsx'; + +import { DocsTable } from '@site/src/CustomComponents/DocsTable.tsx'; + + + +## Definition + +The random float transformer generates a random floating point number. + +For example: +`32.2432` + +By default, the random float transformer generates a floating point number with 2 digits before the decimal point and 3 digits after the decimal point. + +## Configurations + +Depending on your validations, you may want to configure the output float. The random float transformer has the following configurations: + + + +## Examples + +There are several ways you can mix-and-match configurations to get different potential random float formats. Here are some possible combinations: + + diff --git a/docs/sidebars.js b/docs/sidebars.js index 7d535aaa82..240b10929c 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -181,6 +181,11 @@ const sidebars = { id: 'transformers/system/random-bool', label: 'Random Boolean', }, + { + type: 'doc', + id: 'transformers/system/random-float', + label: 'Random Float', + }, ], }, { diff --git a/docs/src/theme/DocSidebarItem/Link/index.js b/docs/src/theme/DocSidebarItem/Link/index.js index c0a0d8480c..14989c47b9 100644 --- a/docs/src/theme/DocSidebarItem/Link/index.js +++ b/docs/src/theme/DocSidebarItem/Link/index.js @@ -32,6 +32,7 @@ import { MdPassword } from 'react-icons/md'; import { PiArrowsSplitLight, PiFlaskLight } from 'react-icons/pi'; import { RxAvatar, RxComponentBoolean } from 'react-icons/rx'; import { SiKubernetes } from 'react-icons/si'; +import { TbDecimal } from 'react-icons/tb'; import styles from './styles.module.css'; export default function DocSidebarItemLink({ @@ -142,6 +143,8 @@ export const RenderIcon = (name) => { return ; case 'Random Boolean': return ; + case 'Random Float': + return ; default: return ; }