XML 34 R59.htm IDEA: XBRL DOCUMENT
v3.20.1

DERIVATIVE FINANCIAL INSTRUMENTS (Details) l in Millions, bu in Millions | 12 Months Ended
--- | ---
Jan. 31, 2020 USD ($) bu | Jan. 31, 2019 USD ($) bu l | Jan. 31, 2018 USD ($)
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Debt Instrument, Collateral Amount | $ | $ 1,113,000 |  |
Derivative, Gain on Derivative | $ | $ 2,201,000 | $ 2,698,000 | $ 1,317,000
Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Forward Purchase Contracts, Quantity | bu | 1.6 | 1.3 |
Short/Sell [Member] | Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity | 3.7 | 2.0 |
Long/Buy [Member] | Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity | bu | 2.2 |  |

X
- References No definition available. + Details
Name: | rex_CommodityFuturesQuantity
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_DERIVATIVEFINANCIALINSTRUMENTSDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsQuantity
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of assets pledged to secure a debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentCollateralAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase in the fair value of derivatives recognized in the income statement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeGainOnDerivative
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_TradingActivityByTypeAxis=rex_CornMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerDurationAxis=rex_ShortSellMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerDurationAxis=rex_LongBuyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |