crandas.random¶
- crandas.random.randbytes(n: MaybePlaceholder[Annotated[int, Ge]], *, num_rows: MaybePlaceholder[Annotated[int, Ge]] = 1) CSeries¶
Generate secret random bytes.
- Parameters
- nint
Length of the generated values in bytes.
- num_rowsint, default 1
Number of rows in the output.
CSeriesCSeries filled with secret random bytes.
- crandas.random.randint(a: MaybePlaceholder[int], b: MaybePlaceholder[int], *, num_rows: MaybePlaceholder[Annotated[int, Ge]] = 1)¶
Generate secret random integer values in [a, b], including both endpoints.
- Parameters
- aint
Lower bound of the possible outputs, inclusive.
- bint
Upper bound of the possible outputs, inclusive.
- num_rowsint, default 1
Number of rows in the output.
CSeriesCSeries filled with secret random integers.
- crandas.random.random(*, num_rows: MaybePlaceholder[Annotated[int, Ge]] = 1, precision: MaybePlaceholder[Annotated[int, Ge]] = 20) CSeries¶
Generate secret random fixed-point values in [0, 1).
- Parameters
- num_rowsint, default 1
Number of rows in the output.
- precisionint, default 20
Precision of the generated fixed-point values.
CSeriesCSeries filled with secret random fixed-points.